Function at 0x409740
Capabilities:
Check http status code
Link many functions at runtime

Disassembly:
sub esp, 0x34
mov eax, dword [0x43cbb0]
push ebx
push ebp
push esi
push edi
xor esi, esi
mov edi, ecx
xor ebx, ebx
xor ebp, ebp
cmp eax, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
jne 0x409893
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4097a0
mov dword [0x43cbb0], 2
jmp 0x409bea
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenA
push esi
call edi
push str.InternetConnectA
push esi
mov dword [0x43cbb4], eax
call edi
push str.HttpOpenRequestA
push esi
mov dword [0x43cbb8], eax
call edi
push str.HttpSendRequestA
push esi
mov dword [0x43cbbc], eax
call edi
push str.HttpQueryInfoA
push esi
mov dword [0x43cbc0], eax
call edi
push str.InternetQueryDataAvailable
push esi
mov dword [0x43cbc4], eax
call edi
push str.InternetReadFile
push esi
mov dword [0x43cbc8], eax
call edi
push str.InternetCloseHandle
push esi
mov dword [0x43cbcc], eax
call edi
push str.FtpOpenFileA
push esi
mov dword [0x43cbd0], eax
call edi
mov dword [0x43cbd4], eax
mov eax, dword [0x43cbb4]
test eax, eax
je 0x409937
mov eax, dword [0x43cbb8]
test eax, eax
je 0x409937
mov eax, dword [0x43cbbc]
test eax, eax
je 0x409937
mov eax, dword [0x43cbc0]
test eax, eax
je 0x409937
mov eax, dword [0x43cbc4]
test eax, eax
je 0x409937
mov eax, dword [0x43cbc8]
test eax, eax
je 0x409937
mov eax, dword [0x43cbcc]
test eax, eax
je 0x409937
mov eax, dword [0x43cbd0]
test eax, eax
je 0x409937
mov edi, dword [esp + 0x10]
mov dword [0x43cbb0], 1
xor esi, esi
push esi
push esi
push esi
push esi
push str.Shockwave_Flash
call dword [0x43cbb4]
cmp eax, esi
mov dword [esp + 0x28], eax
je 0x409bea
cmp dword [0x43cba8], esi
jne 0x409bd2
mov ecx, dword [edi + 0x20]
mov dx, word [edi + 0x10]
neg ecx
sbb ecx, ecx
push edi
and ecx, 0xfffffffe
push esi
add ecx, 3
push ecx
mov ecx, dword [edi + 8]
push esi
push esi
push edx
push ecx
push eax
call dword [0x43cbb8]
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
je 0x409bcc
mov eax, dword [0x43cba8]
test eax, eax
jne 0x409bc5
mov eax, dword [edi + 0x20]
sub eax, 0
je 0x40994c
dec eax
jne 0x409c35
mov edx, dword [edi + 0x18]
push edi
push 2
push 0x80000000
push edx
push esi
call dword [0x43cbd4]
test eax, eax
mov dword [esp + 0x14], eax
je 0x409bc5
mov eax, dword [0x43cba8]
test eax, eax
je 0x409c35
jmp 0x409bb2
mov edi, dword [esp + 0x10]
mov dword [0x43cbb0], 2
xor esi, esi
jmp 0x409bea
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x18]
neg eax
sbb eax, eax
push edi
and eax, 0x80000000
push eax
push 0x43c124
push 0
push 0
push ecx
push 0
push esi
call dword [0x43cbbc]
test eax, eax
mov dword [esp + 0x14], eax
je 0x409bc5
mov eax, dword [0x43cba8]
test eax, eax
jne 0x409bb2
mov edx, dword [str.http:__]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [0x43cba0]
mov eax, dword [edx + 0x15cc]
push eax
call fcn.0042e660
add esp, 0xc
test eax, eax
je 0x4099e3
mov edx, dword [str.https:__]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [0x43cba0]
push edx
mov edx, dword [ecx + 0x15cc]
push edx
call fcn.0042e660
add esp, 0xc
test eax, eax
jne 0x409a14
push str.Referer:
lea ecx, [esp + 0x3c]
call fcn.004230c0
mov eax, dword [0x43cba0]
mov ecx, dword [eax + 0x15cc]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004230c0
push 0x43c2e0
lea ecx, [esp + 0x3c]
call fcn.004230c0
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 0x1c]
test edi, edi
je 0x409a53
or ecx, 0xffffffff
xor eax, eax
mov ebx, edi
push str.Content_type:_application_x_www_form_urlencoded_r_nContent_length:
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x3c]
call fcn.004230c0
push ebp
lea ecx, [esp + 0x3c]
call fcn.00422f90
push 0x43c2e0
lea ecx, [esp + 0x3c]
call fcn.004230c0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x409a61
mov ecx, dword [esp + 0x38]
jmp 0x409a69
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ebp
push ebx
push eax
mov eax, dword [esp + 0x20]
push ecx
push eax
call dword [0x43cbc0]
test eax, eax
je 0x409bae
mov eax, dword [0x43cba8]
test eax, eax
jne 0x409bae
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x38]
push ecx
push edx
push 0x20000013
push eax
mov dword [esp + 0x2c], 4
call dword [0x43cbc4]
test eax, eax
je 0x409bae
cmp dword [esp + 0x34], 0xc8
jne 0x409bae
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 1
push edx
mov dword [esp + 0x2c], 0
call dword [0x43cbc4]
test eax, eax
jne 0x409af8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409bae
mov eax, dword [esp + 0x18]
inc eax
push eax
call fcn.00406d30
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push 0
push ecx
push eax
push 1
push edx
call dword [0x43cbc4]
test eax, eax
je 0x409bae
mov esi, dword [str.application_x_shockwave_flash]
xor ebp, ebp
test esi, esi
je 0x409b78
mov edi, 0x43c124
mov eax, dword [esp + 0x1c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x409b64
test cl, cl
je 0x409b60
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x409b64
add eax, 2
add esi, 2
test cl, cl
jne 0x409b3c
xor eax, eax
jmp 0x409b69
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409b78
mov esi, dword [edi + 4]
add edi, 4
inc ebp
test esi, esi
jne 0x409b38
mov eax, dword [ebp*4 + 0x43c124]
test eax, eax
jne 0x409c24
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x409c24
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 4]
push ecx
push edx
call fcn.0040a570
add esp, 8
mov dword [esp + 0x20], 1
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x409bc1
push eax
call dword [0x43cbd0]
mov esi, dword [esp + 0x24]
push esi
call dword [0x43cbd0]
mov eax, dword [esp + 0x28]
xor esi, esi
push eax
call dword [0x43cbd0]
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x409bea
push eax
call fcn.00406d40
add esp, 4
cmp dword [0x43cba8], esi
jne 0x409c0f
mov eax, dword [0x43cba0]
mov edx, dword [esp + 0x20]
push edi
push edx
mov ecx, dword [eax + 0x15e4]
push 0x401
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [esp + 0x38]
push edx
call fcn.0041ee00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [0x43cba8]
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x409cf8
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push 0
push eax
push ecx
call dword [0x43cbc8]
test eax, eax
je 0x409cf8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409cf8
mov ecx, dword [0x43cba8]
test ecx, ecx
jne 0x409cf8
cmp eax, 0x10000
jbe 0x409c7b
mov eax, 0x10000
mov dword [esp + 0x10], eax
push eax
call fcn.00406d30
mov ecx, dword [esp + 0x18]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push eax
push esi
push ecx
call dword [0x43cbcc]
test eax, eax
je 0x409cf8
mov eax, dword [esp + 0x20]
test eax, eax
je 0x409cf8
mov eax, dword [0x43cba8]
test eax, eax
jne 0x409cf8
push 0xc
call fcn.00406d30
add esp, 4
test eax, eax
je 0x409ccf
mov edx, dword [esp + 0x20]
mov ecx, eax
push edx
push esi
push edi
call fcn.0040a2b0
jmp 0x409cd1
xor eax, eax
push eax
mov eax, dword [0x43cba0]
push 0
push 0x400
mov ecx, dword [eax + 0x15e4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [0x43cba8]
test eax, eax
je 0x409c35
mov dword [esp + 0x20], 1
jmp 0x409bb2