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

Disassembly:
sub esp, 0x34
mov eax, dword [0x43cb60]
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 + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
jne 0x409873
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x409780
mov dword [0x43cb60], 2
jmp 0x409bca
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenA
push esi
call edi
push str.InternetConnectA
push esi
mov dword [0x43cb64], eax
call edi
push str.HttpOpenRequestA
push esi
mov dword [0x43cb68], eax
call edi
push str.HttpSendRequestA
push esi
mov dword [0x43cb6c], eax
call edi
push str.HttpQueryInfoA
push esi
mov dword [0x43cb70], eax
call edi
push str.InternetQueryDataAvailable
push esi
mov dword [0x43cb74], eax
call edi
push str.InternetReadFile
push esi
mov dword [0x43cb78], eax
call edi
push str.InternetCloseHandle
push esi
mov dword [0x43cb7c], eax
call edi
push str.FtpOpenFileA
push esi
mov dword [0x43cb80], eax
call edi
mov dword [0x43cb84], eax
mov eax, dword [0x43cb64]
test eax, eax
je 0x409917
mov eax, dword [0x43cb68]
test eax, eax
je 0x409917
mov eax, dword [0x43cb6c]
test eax, eax
je 0x409917
mov eax, dword [0x43cb70]
test eax, eax
je 0x409917
mov eax, dword [0x43cb74]
test eax, eax
je 0x409917
mov eax, dword [0x43cb78]
test eax, eax
je 0x409917
mov eax, dword [0x43cb7c]
test eax, eax
je 0x409917
mov eax, dword [0x43cb80]
test eax, eax
je 0x409917
mov edi, dword [esp + 0x10]
mov dword [0x43cb60], 1
xor esi, esi
push esi
push esi
push esi
push esi
push str.Shockwave_Flash
call dword [0x43cb64]
cmp eax, esi
mov dword [esp + 0x28], eax
je 0x409bca
cmp dword [0x43cb58], esi
jne 0x409bb2
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 [0x43cb68]
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
je 0x409bac
mov eax, dword [0x43cb58]
test eax, eax
jne 0x409ba5
mov eax, dword [edi + 0x20]
sub eax, 0
je 0x40992c
dec eax
jne 0x409c15
mov edx, dword [edi + 0x18]
push edi
push 2
push 0x80000000
push edx
push esi
call dword [0x43cb84]
test eax, eax
mov dword [esp + 0x14], eax
je 0x409ba5
mov eax, dword [0x43cb58]
test eax, eax
je 0x409c15
jmp 0x409b92
mov edi, dword [esp + 0x10]
mov dword [0x43cb60], 2
xor esi, esi
jmp 0x409bca
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 [0x43cb6c]
test eax, eax
mov dword [esp + 0x14], eax
je 0x409ba5
mov eax, dword [0x43cb58]
test eax, eax
jne 0x409b92
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 [0x43cb50]
mov eax, dword [edx + 0x15cc]
push eax
call fcn.0042e520
add esp, 0xc
test eax, eax
je 0x4099c3
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 [0x43cb50]
push edx
mov edx, dword [ecx + 0x15cc]
push edx
call fcn.0042e520
add esp, 0xc
test eax, eax
jne 0x4099f4
push str.Referer:
lea ecx, [esp + 0x3c]
call fcn.00422f80
mov eax, dword [0x43cb50]
mov ecx, dword [eax + 0x15cc]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00422f80
push 0x43c2e0
lea ecx, [esp + 0x3c]
call fcn.00422f80
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 0x1c]
test edi, edi
je 0x409a33
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.00422f80
push ebp
lea ecx, [esp + 0x3c]
call fcn.00422e50
push 0x43c2e0
lea ecx, [esp + 0x3c]
call fcn.00422f80
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x409a41
mov ecx, dword [esp + 0x38]
jmp 0x409a49
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push ebp
push ebx
push eax
mov eax, dword [esp + 0x20]
push ecx
push eax
call dword [0x43cb70]
test eax, eax
je 0x409b8e
mov eax, dword [0x43cb58]
test eax, eax
jne 0x409b8e
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 [0x43cb74]
test eax, eax
je 0x409b8e
cmp dword [esp + 0x34], 0xc8
jne 0x409b8e
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 [0x43cb74]
test eax, eax
jne 0x409ad8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409b8e
mov eax, dword [esp + 0x18]
inc eax
push eax
call fcn.00406d10
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 [0x43cb74]
test eax, eax
je 0x409b8e
mov esi, dword [str.application_x_shockwave_flash]
xor ebp, ebp
test esi, esi
je 0x409b58
mov edi, 0x43c124
mov eax, dword [esp + 0x1c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x409b44
test cl, cl
je 0x409b40
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x409b44
add eax, 2
add esi, 2
test cl, cl
jne 0x409b1c
xor eax, eax
jmp 0x409b49
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409b58
mov esi, dword [edi + 4]
add edi, 4
inc ebp
test esi, esi
jne 0x409b18
mov eax, dword [ebp*4 + 0x43c124]
test eax, eax
jne 0x409c04
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x409c04
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 4]
push ecx
push edx
call fcn.0040a540
add esp, 8
mov dword [esp + 0x20], 1
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x409ba1
push eax
call dword [0x43cb80]
mov esi, dword [esp + 0x24]
push esi
call dword [0x43cb80]
mov eax, dword [esp + 0x28]
xor esi, esi
push eax
call dword [0x43cb80]
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x409bca
push eax
call fcn.00406d20
add esp, 4
cmp dword [0x43cb58], esi
jne 0x409bef
mov eax, dword [0x43cb50]
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.0041ecf0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [0x43cb58]
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x409cd8
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push 0
push eax
push ecx
call dword [0x43cb78]
test eax, eax
je 0x409cd8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409cd8
mov ecx, dword [0x43cb58]
test ecx, ecx
jne 0x409cd8
cmp eax, 0x10000
jbe 0x409c5b
mov eax, 0x10000
mov dword [esp + 0x10], eax
push eax
call fcn.00406d10
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 [0x43cb7c]
test eax, eax
je 0x409cd8
mov eax, dword [esp + 0x20]
test eax, eax
je 0x409cd8
mov eax, dword [0x43cb58]
test eax, eax
jne 0x409cd8
push 0xc
call fcn.00406d10
add esp, 4
test eax, eax
je 0x409caf
mov edx, dword [esp + 0x20]
mov ecx, eax
push edx
push esi
push edi
call fcn.0040a280
jmp 0x409cb1
xor eax, eax
push eax
mov eax, dword [0x43cb50]
push 0
push 0x400
mov ecx, dword [eax + 0x15e4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [0x43cb58]
test eax, eax
je 0x409c15
mov dword [esp + 0x20], 1
jmp 0x409b92