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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0xd4], 0x4bd4c4
push ebx
xor ebx, ebx
mov dword [ebp - 0x100], eax
xor eax, eax
mov dword [ebp - 0xcc], ebx
xor ecx, ecx
mov word [ebp - 0xf8], ax
inc ecx
mov dword [ebp - 0xd0], ebx
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x110], 0x3c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [0x4dca70]
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0xfc], 0x40
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], 0x80
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xd8], ebx
cmp dword [0x51d3a0], ebx
jne 0x4182c4
push str.InternetCrackUrlA
call fcn.00415126
push eax
call esi
mov dword [0x51d3a0], eax
test eax, eax
jne 0x4182c4
call fcn.0042fc51
push eax
push str.WinInet
push str.InternetCrackUrlA
push str.Unable_to_locate__s___in__s.dll:__s_n
call fcn.0042ed57
add esp, 0x10
jmp 0x418500
cmp dword [0x51d384], ebx
jne 0x4182f4
push str.InternetConnectA
call fcn.00415126
push eax
call esi
mov dword [0x51d384], eax
test eax, eax
jne 0x4182f4
call fcn.0042fc51
push eax
push str.WinInet
push str.InternetConnectA
jmp 0x4182b2
cmp dword [0x51d39c], ebx
jne 0x418324
push str.InternetCloseHandle
call fcn.00415126
push eax
call esi
mov dword [0x51d39c], eax
test eax, eax
jne 0x418324
call fcn.0042fc51
push eax
push str.WinInet
push str.InternetCloseHandle
jmp 0x4182b2
cmp dword [0x51d398], ebx
jne 0x418357
push str.HttpOpenRequestA
call fcn.00415126
push eax
call esi
mov dword [0x51d398], eax
test eax, eax
jne 0x418357
call fcn.0042fc51
push eax
push str.WinInet
push str.HttpOpenRequestA
jmp 0x4182b2
cmp dword [0x51d394], ebx
jne 0x41838a
push str.HttpSendRequestA
call fcn.00415126
push eax
call esi
mov dword [0x51d394], eax
test eax, eax
jne 0x41838a
call fcn.0042fc51
push eax
push str.WinInet
push str.HttpSendRequestA
jmp 0x4182b2
cmp dword [0x51d380], ebx
jne 0x4183bd
push str.HttpQueryInfoA
call fcn.00415126
push eax
call esi
mov dword [0x51d380], eax
test eax, eax
jne 0x4183bd
call fcn.0042fc51
push eax
push str.WinInet
push str.HttpQueryInfoA
jmp 0x4182b2
test edi, edi
jne 0x4183c8
xor eax, eax
jmp 0x41850c
push edi
mov dword [0x4dc5d0], ebx
mov dword [0x52246c], 0x194
call fcn.004816f0
pop ecx
lea ecx, [ebp - 0x110]
push ecx
push ebx
push eax
push edi
call dword [0x51d3a0]
test eax, eax
je 0x418500
cmp dword [ebp - 0x100], ebx
je 0x418500
cmp dword [ebp - 0xe4], ebx
je 0x418500
xor ecx, ecx
mov byte [ebp - 5], bl
call fcn.00415ecc
mov edi, eax
test edi, edi
je 0x418500
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0xf8]
push dword [ebp - 0x100]
push edi
call dword [0x51d384]
mov ebx, eax
test ebx, ebx
je 0x4184f9
xor edx, edx
mov eax, 0x488c600
cmp dword [ebp - 0x104], 4
mov ecx, 0x408c600
push edx
cmove ecx, eax
lea eax, [ebp - 0xd4]
push ecx
push eax
push edx
push edx
push dword [ebp - 0xe4]
push 0x4bd67c
push ebx
call dword [0x51d398]
mov esi, eax
test esi, esi
je 0x4184f2
push 0
push 0
push 0xffffffffffffffff
push str.Accept_Encoding:_gzip__deflate
push esi
call dword [0x51d394]
test eax, eax
je 0x4184eb
push 0
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc8], 4
push eax
push 0x52246c
push 0x20000013
push esi
call dword [0x51d380]
cmp dword [0x52246c], 0xc8
jne 0x4184eb
push 0
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc8], 4
push eax
lea eax, [ebp - 0xcc]
push eax
push 0x20000005
push esi
call dword [0x51d380]
push esi
call dword [0x51d39c]
push ebx
call dword [0x51d39c]
push edi
call dword [0x51d39c]
xor eax, eax
cmp eax, dword [ebp - 0xcc]
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret