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

Disassembly:
push ebp
xor eax, eax
mov ecx, 0xe
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x13c
mov dword [ebp - 0x120], edi
lea edi, [ebp - 0x110]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x118], eax
xor eax, eax
cmp dword [0x520f00], 0
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x11c], 0x49f56c
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x114], 0x3c
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x100], 0x40
mov dword [ebp - 0xf4], 1
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], pe_nt_image_headers32
mov dword [ebp - 0xe4], 1
jne 0x425931
call fcn.0042382a
mov dword [esp + 4], str.InternetCrackUrlA
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push esi
push esi
mov dword [0x520f00], eax
test eax, eax
jne 0x425931
call fcn.0043df77
mov dword [esp + 8], str.WinInet
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.InternetCrackUrlA
jmp 0x425a91
cmp dword [0x520efc], 0
jne 0x425979
call fcn.0042382a
mov dword [esp + 4], str.InternetConnectA
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ecx
push ecx
mov dword [0x520efc], eax
test eax, eax
jne 0x425979
call fcn.0043df77
mov dword [esp + 8], str.WinInet
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.InternetConnectA
jmp 0x425a91
cmp dword [0x520ef8], 0
jne 0x4259c1
call fcn.0042382a
mov dword [esp + 4], str.InternetCloseHandle
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push edx
push edx
mov dword [0x520ef8], eax
test eax, eax
jne 0x4259c1
call fcn.0043df77
mov dword [esp + 8], str.WinInet
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.InternetCloseHandle
jmp 0x425a91
cmp dword [0x520ef4], 0
jne 0x425a09
call fcn.0042382a
mov dword [esp + 4], str.HttpOpenRequestA
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push edi
push edi
mov dword [0x520ef4], eax
test eax, eax
jne 0x425a09
call fcn.0043df77
mov dword [esp + 8], str.WinInet
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.HttpOpenRequestA
jmp 0x425a91
cmp dword [0x520ef0], 0
jne 0x425a4e
call fcn.0042382a
mov dword [esp + 4], str.HttpSendRequestA
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push esi
push esi
mov dword [0x520ef0], eax
test eax, eax
jne 0x425a4e
call fcn.0043df77
mov dword [esp + 8], str.WinInet
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.HttpSendRequestA
jmp 0x425a91
cmp dword [0x520eec], 0
jne 0x425aa2
call fcn.0042382a
mov dword [esp + 4], str.HttpQueryInfoA
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ecx
push ecx
mov dword [0x520eec], eax
test eax, eax
jne 0x425aa2
call fcn.0043df77
mov dword [esp + 8], str.WinInet
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.HttpQueryInfoA
mov dword [esp], 0x49f4c4
call fcn.0043d9e0
jmp 0x425c84
xor eax, eax
test ebx, ebx
je 0x425c90
mov dword [0x520ee8], 0x194
xor eax, eax
mov dword [0x4dfd80], eax
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
lea edx, [ebp - 0x114]
mov dword [esp], ebx
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [0x520f00]
sub esp, 0x10
test eax, eax
je 0x425c84
cmp dword [ebp - 0x104], 0
je 0x425c84
cmp dword [ebp - 0xe8], 0
je 0x425c84
xor edx, edx
xor eax, eax
mov byte [ebp - 0x99], 0
call fcn.0042396b
mov esi, eax
test eax, eax
je 0x425c84
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
movzx eax, word [ebp - 0xfc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x104]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [0x520efc]
sub esp, 0x20
mov edi, eax
test eax, eax
je 0x425c7a
cmp dword [ebp - 0x108], 4
mov edx, 0x488c600
mov eax, 0x408c600
cmove eax, edx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0xe8]
mov dword [esp + 4], 0x49f680
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [0x520ef4]
sub esp, 0x20
mov ebx, eax
test eax, eax
je 0x425c70
xor eax, eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.Accept_Encoding:_gzip__deflate
mov dword [esp], ebx
call dword [0x520ef0]
sub esp, 0x14
test eax, eax
je 0x425c66
xor eax, eax
lea edx, [ebp - 0x124]
mov dword [ebp - 0x124], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x520ee8
mov dword [esp + 4], 0x20000013
mov dword [esp], ebx
call dword [0x520eec]
sub esp, 0x14
cmp dword [0x520ee8], 0xc8
jne 0x425c66
xor eax, eax
lea edx, [ebp - 0x124]
mov dword [ebp - 0x124], 4
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x20000005
mov dword [esp], ebx
call dword [0x520eec]
sub esp, 0x14
mov dword [esp], ebx
call dword [0x520ef8]
push edx
mov dword [esp], edi
call dword [0x520ef8]
push ecx
mov dword [esp], esi
call dword [0x520ef8]
push eax
xor eax, eax
cmp dword [ebp - 0x120], 0
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret