Function at 0x40a47c
Capabilities:
Check http status code

Disassembly:
mov eax, 0x4df9f8
call fcn.004b8e80
sub esp, 0x150
mov eax, dword [0x52933c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040ac12
test al, al
jne 0x40a4c3
mov ecx, esi
call fcn.0040ae04
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d519c
mov eax, ebx
jmp 0x40a954
push 0x65b6
lea ecx, [ebp - 0x10]
mov dword [esi + 0x84], ebx
call fcn.004d626d
push dword [ebp - 0x10]
mov ecx, esi
push 0x4033
call fcn.004d470d
xor edi, edi
cmp dword [0x52bfe0], ebx
mov dword [ebp - 0x34], ebx
jle 0x40a57b
mov eax, dword [0x52bfdc]
mov eax, dword [eax + edi*4]
cmp byte [eax + 0x310], bl
jne 0x40a55f
inc dword [esi + 0x84]
mov eax, dword [0x52bfdc]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 0x30c]
cmp ecx, ebx
je 0x40a522
mov eax, ecx
jmp 0x40a533
push eax
mov ecx, esi
push dword [0x52bfd0]
push dword [esi + 0x1c]
call fcn.0040b081
cmp eax, ebx
je 0x40a54b
cmp eax, 0xffffffff
je 0x40a54b
mov ecx, dword [0x52bfdc]
mov ecx, dword [ecx + edi*4]
mov dword [ecx + 0x30c], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x40a55b
cmp eax, 0xffffffff
je 0x40a55b
add dword [ebp - 0x34], eax
jmp 0x40a55f
or dword [ebp - 0x34], 0xffffffff
mov ecx, esi
call fcn.0040adf4
test al, al
jne 0x40a4b0
inc edi
cmp edi, dword [0x52bfe0]
jl 0x40a4f6
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x90], eax
mov dword [esi + 0x88], ebx
xor ecx, ecx
cmp dword [0x52bfe0], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ecx
jle 0x40a93c
mov edi, 0x50e1e0
mov eax, dword [0x52bfdc]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 0x310], bl
jne 0x40a929
mov dword [esi + 0x8c], eax
mov eax, dword [0x52bfdc]
mov eax, dword [eax + ecx*4]
lea ecx, [esi + 0x80]
mov dword [ebp - 0x30], eax
add eax, 0x104
push eax
call fcn.004d5325
push dword [ebp - 0x30]
inc dword [esi + 0x88]
lea ecx, [ebp - 0x18]
call fcn.004d520a
mov eax, dword [ebp - 0x30]
push ebx
push 0x80
push 2
push ebx
push ebx
add eax, 0x104
push 0x40000000
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, ebx
mov dword [esi + 0x68], eax
je 0x40a963
mov eax, dword [0x52bfdc]
mov ecx, dword [ebp - 0x3c]
push dword [eax + ecx*4]
mov ecx, esi
push dword [ebp - 0x18]
call fcn.0040ae98
mov ecx, esi
call fcn.0040adf4
test al, al
jne 0x40a9b9
mov eax, dword [0x52933c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 6
push dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
call fcn.0040afce
test al, al
je 0x40a9c0
push 3
pop eax
cmp dword [ebp - 0x38], eax
je 0x40a69b
push 1
pop eax
cmp dword [ebp - 0x38], eax
jne 0x40ab72
mov dword [ebp - 0x14], 0x8000000
mov ecx, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
push eax
jne 0x40a6ac
push ebx
push ebx
jmp 0x40a6b0
push dword [ebp - 0x28]
push ecx
push dword [ebp - 0x54]
push dword [ebp - 0x1c]
push dword [0x52bfd0]
call dword [0x52bfa8]
cmp eax, ebx
mov dword [esi + 0x64], eax
je 0x40a9cc
cmp dword [ebp - 0x38], 3
jne 0x40a6ed
push esi
push 0x84400000
push 0x50ed28
push ebx
push ebx
push dword [ebp - 0x24]
push ebx
push eax
call dword [0x52bfac]
jmp 0x40a708
cmp dword [ebp - 0x38], 1
jne 0x40a70b
push esi
push reloc.OLEAUT32.dll_SysReAllocString
push SysReAllocString
push dword [ebp - 0x24]
push eax
call dword [0x52bfb0]
mov dword [esi + 0x60], eax
cmp dword [esi + 0x60], ebx
je 0x40aa33
cmp dword [ebp - 0x38], 3
jne 0x40a88c
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x60]
call dword [0x52bfb8]
test eax, eax
je 0x40aa92
mov ecx, esi
call fcn.0040adf4
test al, al
jne 0x40aae3
lea eax, [ebp - 0x4c]
push ebx
push eax
lea eax, [ebp - 0x40]
push eax
push 0x20000013
push dword [esi + 0x60]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x4c], 4
call dword [0x52bfb4]
test eax, eax
je 0x40aaea
mov eax, dword [ebp - 0x40]
cmp eax, 0xc8
je 0x40a840
cmp eax, 0x197
je 0x40a78a
cmp eax, 0x191
jne 0x40a7a4
push dword [esi + 0x60]
mov ecx, esi
push dword [esi + 0x1c]
call fcn.0040af4f
test al, al
je 0x40ab7d
jmp 0x40a714
cmp eax, 0x12e
je 0x40a7b6
cmp eax, 0x12d
jne 0x40ab36
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x15c]
push eax
push 0x21
push dword [esi + 0x60]
mov dword [ebp - 0x14], 0x104
call dword [0x52bfb4]
lea eax, [ebp - 0x15c]
lea ecx, [ebp - 0x18]
push eax
call fcn.004d5325
push 0x65b3
lea ecx, [ebp - 0x10]
call fcn.004d626d
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push edi
call fcn.004cef90
push dword [ebp - 0x10]
mov ecx, esi
push 0x4033
call fcn.004d470d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004d519c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004d519c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004d519c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004d519c
jmp 0x40a61a
lea eax, [ebp - 0x4c]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000005
push dword [esi + 0x60]
call dword [0x52bfb4]
test eax, eax
jne 0x40a85e
mov dword [ebp - 0x20], ebx
mov eax, dword [0x52bfdc]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x48], ebx
push dword [eax + ecx*4]
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x20]
call fcn.0040b363
test al, al
je 0x40ab2e
jmp 0x40a8c4
cmp dword [ebp - 0x38], 1
jne 0x40a8c4
mov eax, dword [0x52bfdc]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], ebx
push dword [eax + ecx*4]
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x30]
push dword [eax + 0x30c]
call fcn.0040b363
test al, al
je 0x40abc1
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esi + 0x60]
mov dword [esi + 0x68], ebx
call dword [0x52bfc0]
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x60], ebx
mov eax, dword [0x52bfdc]
mov byte [ebp - 4], 5
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x28]
mov byte [eax + 0x310], 1
call fcn.004d519c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004d519c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004d519c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004d519c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004d519c
mov ecx, dword [ebp - 0x3c]
inc ecx
cmp ecx, dword [0x52bfe0]
mov dword [ebp - 0x3c], ecx
jl 0x40a5a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [esi + 0x74], 1
mov byte [esi + 0x70], bl
call fcn.004d519c
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [0x52933c]
mov dword [ebp - 0x20], eax
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0040ae18
mov eax, dword [ebp - 0x30]
lea ecx, [esi + 0x7c]
add eax, 0x104
push eax
push edi
call fcn.004cef90
push dword [ebp - 0x20]
lea ecx, [esi + 0x7c]
push 0x50ee60
call fcn.004cef90
mov ecx, esi
call fcn.0040ae04
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
jmp 0x40abef
xor esi, esi
jmp 0x40abf4
push dword [ebp - 0x18]
lea ecx, [esi + 0x7c]
push edi
jmp 0x40ab6d
mov eax, dword [0x52933c]
mov dword [ebp - 0x20], eax
push str.wininet.dll
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0040ae18
lea ecx, [esi + 0x7c]
push 0x65b7
call fcn.004d626d
push dword [ebp - 0x1c]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.004cef90
push dword [ebp - 0x20]
mov ecx, edi
push 0x50ee60
call fcn.004cef90
mov ecx, esi
call fcn.0040ae04
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.004d519c
jmp 0x40abc4
mov eax, dword [0x52933c]
mov dword [ebp - 0x20], eax
push str.wininet.dll
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0040ae18
lea ecx, [esi + 0x7c]
push 0x65ba
call fcn.004d626d
push dword [ebp - 0x30]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.004cef90
push dword [ebp - 0x20]
mov ecx, edi
push 0x50ee60
call fcn.004cef90
mov ecx, esi
call fcn.0040ae04
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
jmp 0x40aa29
mov eax, dword [0x52933c]
mov dword [ebp - 0x14], eax
push str.wininet.dll
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0040ae18
lea ecx, [esi + 0x7c]
push 0x65bb
call fcn.004d626d
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.004cef90
mov ecx, esi
call fcn.0040ae04
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x40aa29
xor esi, esi
jmp 0x40abc4
mov eax, dword [0x52933c]
mov dword [ebp - 0x14], eax
push str.wininet.dll
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0040ae18
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.004cef90
mov ecx, esi
call fcn.0040ae04
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x40aa29
mov esi, dword [ebp - 0x48]
jmp 0x40abc4
push eax
lea eax, [ebp - 0x10]
push 0x50ee5c
push eax
call fcn.004cf648
add esp, 0xc
lea ecx, [esi + 0x7c]
push 0x65b9
call fcn.004d626d
push dword [ebp - 0x30]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.004cef90
push dword [ebp - 0x10]
mov ecx, edi
push 0x50ee60
call fcn.004cef90
mov ecx, esi
call fcn.0040ae04
mov esi, eax
jmp 0x40abc4
mov eax, dword [0x52933c]
mov dword [ebp - 0x14], eax
push str.wininet.dll
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0040ae18
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.004cef90
mov ecx, esi
call fcn.0040ae04
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x40aa29
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004d519c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004d519c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004d519c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004d519c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004d519c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d519c
mov eax, esi
jmp 0x40a954