Function at 0x41a860
Capabilities:
Check http status code
Link many functions at runtime
Parse url
Print debug messages
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x880
mov eax, dword [0x42b75c]
xor eax, esp
mov dword [esp + 0x87c], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0xeb4]
push edi
mov dword [esp + 0xc], esi
test eax, eax
je 0x41a897
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0xeb4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call esi
push 0x421648
call esi
push str.wininet.dll
mov byte [esp + 0xf], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [esp + 0x3c], edi
test edi, edi
jne 0x41a8da
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x87c]
xor ecx, esp
call fcn.0041bd34
add esp, 0x880
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push ebp
push 0x422e70
push edi
call esi
push str.InternetReadFile
push edi
mov ebx, eax
call esi
push 0x422e5c
push edi
mov dword [esp + 0x38], eax
call esi
push 0x422ed4
push edi
mov dword [esp + 0x3c], eax
call esi
push 0x422ec0
push edi
mov ebp, eax
call esi
push 0x422eac
push edi
mov dword [esp + 0x44], eax
call esi
push 0x422e9c
push edi
mov dword [esp + 0x30], eax
call esi
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x41aa5f
cmp dword [esp + 0x30], 0
je 0x41aa5f
mov edi, dword [esp + 0x34]
test edi, edi
je 0x41aa5f
cmp dword [esp + 0x3c], 0
je 0x41aa5f
cmp dword [esp + 0x28], 0
je 0x41aa5f
test eax, eax
je 0x41aa5f
test ebp, ebp
je 0x41aa5f
push 0
push 0
push 0
push 0
push str.webtrans
call ebx
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x41aa5f
push 0x3c
lea eax, [esp + 0x54]
push 0
push eax
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x298]
mov dword [esp + 0x6c], edx
lea ecx, [esp + 0x798]
add esp, 0xc
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x48c]
mov dword [esp + 0x6c], eax
lea edx, [esp + 0x38c]
lea ecx, [esp + 0x68c]
mov dword [esp + 0x7c], edx
lea eax, [esp + 0x58c]
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x78], ecx
xor ecx, ecx
mov dword [esp + 0x88], eax
mov eax, 0xff
push ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x60], 0x3c
mov word [esp + 0x78], cx
mov dword [esp + 0x6c], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push 0
push 0
push 3
push ecx
mov ecx, dword [esp + 0x70]
push edx
push eax
push ecx
push esi
call ebp
mov ebx, eax
mov dword [esp + 0x40], ebx
test ebx, ebx
jne 0x41aa7a
push esi
call edi
xor al, al
mov ecx, dword [esp + 0x88c]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.0041bd34
add esp, 0x880
ret
push 0x1ff
lea edx, [esp + 0x91]
push 0
push edx
mov byte [esp + 0x98], 0
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x98]
add esp, 0xc
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41aab0
mov eax, dword [esp + 0x84]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41aac3
lea edi, [esp + 0x8c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41aad4
mov ecx, eax
shr ecx, 2
xor ebp, ebp
push ebp
push 0x800000
rep movsd dword es:[edi], dword [esi]
push ebp
push ebp
mov ecx, eax
push ebp
lea eax, [esp + 0xa0]
push eax
push 0x422e98
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [esp + 0x5c]
mov esi, eax
cmp esi, ebp
jne 0x41ab22
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
jmp 0x41aa5f
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x1c]
push eax
push 0x1f
mov edi, 4
push esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x58], edi
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [esp + 0x18], 0x2180
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push ebp
push ebp
push ebp
push ebp
push esi
call dword [esp + 0x3c]
push ebp
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x40]
push eax
push 0x20000013
push esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x4c], ebp
call dword [esp + 0x40]
cmp dword [esp + 0x38], 0xc8
jne 0x41aa5f
mov ebx, 0x800
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebp
je 0x41aa5f
push edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41ac0d
lea ecx, [esp + 0x24]
push ecx
mov edx, ebx
sub edx, ebp
push edx
add eax, ebp
push eax
push esi
call dword [esp + 0x40]
test eax, eax
je 0x41ac0d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x24]
add ebp, eax
test eax, eax
je 0x41abfe
cmp ebp, ebx
jne 0x41abf1
push 2
add ebx, 0x800
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x41abb4
jmp 0x41ac0d
mov eax, dword [esp + 0x14]
mov dword [eax + 0xeb8], ebp
mov byte [esp + 0x13], 1
mov ebp, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x16
push esi
mov dword [esp + 0x30], 0
call ebp
test eax, eax
jne 0x41ac70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41ac70
mov edx, dword [esp + 0x1c]
push edx
call sub.mfc90.dll_Ordinal_265
add esp, 4
push 0
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push ebx
push 0x16
push esi
call ebp
test eax, eax
je 0x41ac67
mov ecx, dword [esp + 0x14]
push ebx
add ecx, 0xebc
call dword [sym.imp.mfc90.dll_Ordinal_820]
push ebx
call sub.mfc90.dll_Ordinal_800
add esp, 4
push esi
mov esi, dword [esp + 0x38]
call esi
mov ecx, dword [esp + 0x40]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov bl, byte [esp + 0x13]
cmp bl, 1
jne 0x41acaa
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xeb4], edi
mov al, bl
jmp 0x41aa61
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x14]
mov dword [edx + 0xeb4], 0
mov al, bl
jmp 0x41aa61