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

Disassembly:
sub esp, 0x48
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x88]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x24], ebp
mov ecx, dword [eax + 0xc64]
mov eax, dword [0x56167c]
xor ebx, ebx
cmp eax, ebp
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x48], ecx
jne 0x4d62cb
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebp
jne 0x4d61c2
mov dword [0x56167c], 2
jmp 0x4d6986
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenA
push edi
call ebp
push str.InternetConnectA
push edi
mov dword [0x561680], eax
call ebp
push str.HttpOpenRequestA
push edi
mov dword [0x561684], eax
call ebp
push str.HttpSendRequestA
push edi
mov dword [0x561688], eax
call ebp
push 0x545dd8
push edi
mov dword [0x56168c], eax
call ebp
push str.InternetQueryOptionA
push edi
mov dword [0x561690], eax
call ebp
push str.InternetQueryDataAvailable
push edi
mov dword [0x561694], eax
call ebp
push str.InternetReadFile
push edi
mov dword [0x561698], eax
call ebp
push str.InternetCloseHandle
push edi
mov dword [0x56169c], eax
call ebp
push str.FtpOpenFileA
push edi
mov dword [0x5616a0], eax
call ebp
mov dword [0x5616a4], eax
mov eax, dword [0x561680]
test eax, eax
je 0x4d61b3
mov eax, dword [0x561684]
test eax, eax
je 0x4d61b3
mov eax, dword [0x561688]
test eax, eax
je 0x4d61b3
mov eax, dword [0x56168c]
test eax, eax
je 0x4d61b3
mov eax, dword [0x561690]
test eax, eax
je 0x4d61b3
mov eax, dword [0x561694]
test eax, eax
je 0x4d61b3
mov eax, dword [0x561698]
test eax, eax
je 0x4d61b3
mov eax, dword [0x56169c]
test eax, eax
je 0x4d61b3
mov eax, dword [0x5616a0]
test eax, eax
je 0x4d61b3
mov dword [0x56167c], 1
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
push str.Shockwave_Flash
call dword [0x561680]
cmp eax, ebp
mov dword [esp + 0x2c], eax
je 0x4d6986
mov al, byte [esi + 0x1d]
test al, al
jne 0x4d6986
mov edx, dword [str.https:__]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d6300
mov ecx, dword [esi + 0x30]
sub eax, edi
push eax
push edx
push ecx
call fcn.004c6000
add esp, 0xc
test eax, eax
jne 0x4d6327
mov ebx, 1
mov ebp, 0x1bb
jmp 0x4d632a
mov ebp, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
mov edi, dword [esi + 0x3c]
xor edx, edx
test eax, eax
mov eax, dword [esp + 0x2c]
push esi
sete dl
push 0
lea edx, [edx + edx + 1]
push edx
push 0
push 0
push ebp
push edi
push eax
call dword [0x561684]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4d6986
mov al, byte [esi + 0x1d]
test al, al
jne 0x4d6986
mov ecx, dword [esi + 0x88]
call fcn.00495de0
cmp eax, 6
mov eax, dword [esi + 0x54]
jl 0x4d6387
push 0
push eax
call fcn.004d70d0
add esp, 8
jmp 0x4d6390
push eax
call fcn.00434dd0
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
je 0x4d6986
mov eax, dword [esi + 0x64]
sub eax, 0
je 0x4d63fa
dec eax
jne 0x4d63d6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
push 2
push 0x80000000
push ecx
push edx
call dword [0x5616a4]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4d6986
mov al, byte [esi + 0x1d]
test al, al
jne 0x4d6986
xor ebp, ebp
push 0xc
call fcn.00439320
add esp, 4
cmp eax, ebp
je 0x4d67ce
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
jmp 0x4d67d0
mov eax, dword [esi + 0x84]
test ah, 2
jne 0x4d65d6
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x4d641b
mov ecx, dword [esi + 0x70]
test ecx, ecx
ja 0x4d65e9
mov ecx, 0x53ae50
mov edx, eax
and edx, 0xffffff80
shl edx, 0xd
and eax, 0x8000
or edx, eax
mov eax, dword [esp + 0x14]
shl edx, 0xb
push esi
neg ebx
sbb ebx, ebx
and ebx, 0x800000
or edx, ebx
push edx
push 0
push 0
push 0
push eax
push ecx
mov ecx, dword [esp + 0x38]
push ecx
call dword [0x561688]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4d6986
mov al, byte [esi + 0x1d]
test al, al
jne 0x4d6986
mov edx, dword [str.http:__]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d6480
mov ecx, dword [esi + 0x30]
sub eax, edi
push eax
push edx
push ecx
call fcn.004c6000
add esp, 0xc
test eax, eax
je 0x4d64c1
mov edx, dword [str.https:__]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d64a6
mov ecx, dword [esi + 0x30]
sub eax, edi
push eax
push edx
push ecx
call fcn.004c6000
add esp, 0xc
test eax, eax
jne 0x4d64ea
push str.Referer:
lea ecx, [esp + 0x50]
call fcn.00434890
mov edx, dword [esi + 0x30]
push edx
lea ecx, [esp + 0x50]
call fcn.00434890
push 0x53adc0
lea ecx, [esp + 0x50]
call fcn.00434890
push str.x_flash_version:
lea ecx, [esp + 0x50]
call fcn.00434890
push str.8_0_0_434
lea ecx, [esp + 0x50]
call fcn.00434890
push 0x53adc0
lea ecx, [esp + 0x50]
call fcn.00434890
mov edx, dword [esi + 0x30]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d6520
sub eax, edi
mov ebp, 4
cmp eax, ebp
jbe 0x4d6577
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d6537
sub eax, edi
lea edi, [eax + edx - 4]
push str..jpg
push edi
call fcn.00434aa0
add esp, 8
test eax, eax
jne 0x4d6569
push str..jpeg
dec edi
push edi
call fcn.00434aa0
add esp, 8
test eax, eax
je 0x4d6577
push str.Cache_Control:_no_transform_r_n
lea ecx, [esp + 0x50]
call fcn.00434890
mov eax, dword [esi + 0x6c]
test eax, eax
lea ecx, [esp + 0x4c]
je 0x4d664c
mov edi, dword [esi + 0x70]
mov ebx, eax
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4d65f3
push str.Content_type:
call fcn.00434890
mov eax, dword [esi + 0x74]
push eax
lea ecx, [esp + 0x50]
call fcn.00434890
push str._r_nContent_length:
lea ecx, [esp + 0x50]
call fcn.00434890
push 0xa
push edi
lea ecx, [esp + 0x54]
call fcn.004345f0
push 0x53adc0
lea ecx, [esp + 0x50]
call fcn.00434890
jmp 0x4d665e
mov edi, dword [esi + 0x6c]
test edi, edi
setne cl
movzx ecx, cl
test ecx, ecx
je 0x4d641b
mov ecx, str.POST
jmp 0x4d6420
mov eax, dword [esi + 0x84]
test ah, 2
je 0x4d6618
push str.Content_type:
call fcn.00434890
push str.application_x_amf
lea ecx, [esp + 0x50]
call fcn.00434890
jmp 0x4d665e
push str.Content_Type:
call fcn.00434890
push str.application_x_www_form_urlencoded
lea ecx, [esp + 0x50]
call fcn.00434890
push str._r_nContent_length:
lea ecx, [esp + 0x50]
call fcn.00434890
push 0xa
push edi
lea ecx, [esp + 0x54]
call fcn.004345f0
jmp 0x4d665e
push 0x53adc0
call fcn.00434890
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4d666c
mov eax, dword [esp + 0x4c]
jmp 0x4d6674
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x14]
push ebx
push ecx
push eax
push edi
call dword [0x56168c]
test eax, eax
je 0x4d6980
mov al, byte [esi + 0x1d]
test al, al
jne 0x4d6980
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0x20000013
push edi
mov dword [esp + 0x34], ebp
call dword [0x561690]
test eax, eax
je 0x4d6986
push 0xc
call fcn.00439320
add esp, 4
test eax, eax
je 0x4d66dd
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
jmp 0x4d66df
xor eax, eax
push eax
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0xc64]
push 0
push 0x407
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [esp + 0x34], 0xc8
jne 0x4d6986
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
xor ebp, ebp
push ebp
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push 0x20000005
push ebx
call dword [0x561690]
test eax, eax
jne 0x4d6735
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
push ecx
push ebp
push 0x22
push ebx
mov dword [esp + 0x28], ebp
call dword [0x561694]
test eax, eax
jne 0x4d63d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4d63d8
mov eax, dword [esp + 0x18]
cmp eax, ebp
jbe 0x4d63d8
push eax
call fcn.00439320
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x4d63d8
lea edx, [esp + 0x18]
push edx
push edi
push 0x22
push ebx
call dword [0x561694]
test eax, eax
je 0x4d67c0
push 0xc
call fcn.00439320
add esp, 4
cmp eax, ebp
je 0x4d67b7
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [esp + 0x24], eax
jmp 0x4d63d8
mov dword [esp + 0x24], ebp
jmp 0x4d63d8
push edi
call fcn.00527b30
add esp, 4
jmp 0x4d63d8
xor eax, eax
mov edx, dword [esi + 0x88]
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
push eax
mov eax, dword [edx + 0xc64]
push ebp
push 0x404
push eax
call ebx
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x4d680a
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0xc64]
push eax
push ebp
push 0x408
push edx
call ebx
push 0xc
call fcn.00439320
add esp, 4
cmp eax, ebp
je 0x4d6829
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
jmp 0x4d682b
xor eax, eax
push eax
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0xc64]
push ebp
push 0x406
push ecx
call ebx
mov al, byte [esi + 0x1d]
test al, al
jne 0x4d6986
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push eax
call dword [0x561698]
test eax, eax
je 0x4d690f
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4d690f
mov cl, byte [esi + 0x1d]
test cl, cl
jne 0x4d690f
cmp eax, 0x10000
jbe 0x4d6893
mov eax, 0x10000
mov dword [esp + 0x24], eax
push eax
call fcn.00439320
mov edx, dword [esp + 0x28]
add esp, 4
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
mov eax, dword [esp + 0x14]
push edx
push edi
push eax
call dword [0x56169c]
test eax, eax
je 0x4d690f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d690f
mov al, byte [esi + 0x1d]
test al, al
jne 0x4d6986
push 0xc
call fcn.00439320
add esp, 4
test eax, eax
je 0x4d68ec
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x20]
mov dword [eax + 4], edi
mov dword [eax], edx
mov dword [eax + 8], ecx
mov edi, eax
jmp 0x4d68ee
xor edi, edi
mov al, byte [esi + 0x1d]
test al, al
jne 0x4d693b
push edi
push 0
push 0x402
push ebp
call ebx
test eax, eax
je 0x4d693b
mov al, byte [esi + 0x1d]
test al, al
je 0x4d6850
mov al, byte [esi + 0x1d]
test al, al
jne 0x4d6986
push 0xc
mov dword [esp + 0x34], 1
call fcn.00439320
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x4d6962
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x4d6964
test edi, edi
je 0x4d6958
mov eax, dword [edi + 4]
test eax, eax
je 0x4d694f
push eax
call fcn.00527b30
add esp, 4
push edi
call fcn.00527b30
add esp, 4
mov dword [esp + 0x30], 1
jmp 0x4d6986
xor eax, eax
push eax
mov eax, dword [esi + 0x88]
push ecx
mov ecx, dword [eax + 0xc64]
push 0x405
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4d6986
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
push edx
call fcn.00527b30
mov eax, dword [esp + 0x14]
xor edi, edi
add esp, 4
cmp eax, edi
je 0x4d69a4
push eax
call dword [0x5616a0]
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4d69b3
push eax
call dword [0x5616a0]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4d69c2
push eax
call dword [0x5616a0]
cmp dword [esp + 0x30], edi
jne 0x4d69ff
push 0xc
call fcn.00439320
add esp, 4
cmp eax, edi
je 0x4d69e3
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x4d69e5
xor eax, eax
mov edx, dword [esi + 0x88]
push eax
mov eax, dword [edx + 0xc64]
push edi
push 0x403
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00527b30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret