Function at 0x408c4a
Capabilities:
Check http status code

Disassembly:
mov eax, 0x4a5d44
call fcn.004817b4
sub esp, 0x150
mov eax, dword [0x4dbfc4]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004093e0
test al, al
jne 0x408c91
mov ecx, esi
call fcn.004095d2
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049bdde
mov eax, ebx
jmp 0x409122
push 0x65b6
lea ecx, [ebp - 0x10]
mov dword [esi + 0x84], ebx
call fcn.0049ce0f
push dword [ebp - 0x10]
mov ecx, esi
push 0x4033
call fcn.0049b369
xor edi, edi
cmp dword [0x4deae0], ebx
mov dword [ebp - 0x34], ebx
jle 0x408d49
mov eax, dword [0x4deadc]
mov eax, dword [eax + edi*4]
cmp byte [eax + 0x310], bl
jne 0x408d2d
inc dword [esi + 0x84]
mov eax, dword [0x4deadc]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 0x30c]
cmp ecx, ebx
je 0x408cf0
mov eax, ecx
jmp 0x408d01
push eax
mov ecx, esi
push dword [0x4dead0]
push dword [esi + 0x1c]
call fcn.0040984f
cmp eax, ebx
je 0x408d19
cmp eax, 0xffffffff
je 0x408d19
mov ecx, dword [0x4deadc]
mov ecx, dword [ecx + edi*4]
mov dword [ecx + 0x30c], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x408d29
cmp eax, 0xffffffff
je 0x408d29
add dword [ebp - 0x34], eax
jmp 0x408d2d
or dword [ebp - 0x34], 0xffffffff
mov ecx, esi
call fcn.004095c2
test al, al
jne 0x408c7e
inc edi
cmp edi, dword [0x4deae0]
jl 0x408cc4
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x90], eax
mov dword [esi + 0x88], ebx
xor ecx, ecx
cmp dword [0x4deae0], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ecx
jle 0x40910a
mov edi, 0x4d01d0
mov eax, dword [0x4deadc]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 0x310], bl
jne 0x4090f7
mov dword [esi + 0x8c], eax
mov eax, dword [0x4deadc]
mov eax, dword [eax + ecx*4]
lea ecx, [esi + 0x80]
mov dword [ebp - 0x30], eax
add eax, 0x104
push eax
call fcn.0049bf67
push dword [ebp - 0x30]
inc dword [esi + 0x88]
lea ecx, [ebp - 0x18]
call fcn.0049be4c
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 0x409131
mov eax, dword [0x4deadc]
mov ecx, dword [ebp - 0x3c]
push dword [eax + ecx*4]
mov ecx, esi
push dword [ebp - 0x18]
call fcn.00409666
mov ecx, esi
call fcn.004095c2
test al, al
jne 0x409187
mov eax, dword [0x4dbfc4]
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.0040979c
test al, al
je 0x40918e
push 3
pop eax
cmp dword [ebp - 0x38], eax
je 0x408e69
push 1
pop eax
cmp dword [ebp - 0x38], eax
jne 0x409340
mov dword [ebp - 0x14], 0x8000000
mov ecx, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
push eax
jne 0x408e7a
push ebx
push ebx
jmp 0x408e7e
push dword [ebp - 0x28]
push ecx
push dword [ebp - 0x54]
push dword [ebp - 0x1c]
push dword [0x4dead0]
call dword [0x4deaa8]
cmp eax, ebx
mov dword [esi + 0x64], eax
je 0x40919a
cmp dword [ebp - 0x38], 3
jne 0x408ebb
push esi
push 0x84400000
push 0x4d0ce0
push ebx
push ebx
push dword [ebp - 0x24]
push ebx
push eax
call dword [0x4deaac]
jmp 0x408ed6
cmp dword [ebp - 0x38], 1
jne 0x408ed9
push esi
push reloc.OLEAUT32.dll_SysReAllocString
push SysReAllocStringLen
push dword [ebp - 0x24]
push eax
call dword [0x4deab0]
mov dword [esi + 0x60], eax
cmp dword [esi + 0x60], ebx
je 0x409201
cmp dword [ebp - 0x38], 3
jne 0x40905a
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x60]
call dword [0x4deab8]
test eax, eax
je 0x409260
mov ecx, esi
call fcn.004095c2
test al, al
jne 0x4092b1
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 [0x4deab4]
test eax, eax
je 0x4092b8
mov eax, dword [ebp - 0x40]
cmp eax, 0xc8
je 0x40900e
cmp eax, 0x197
je 0x408f58
cmp eax, 0x191
jne 0x408f72
push dword [esi + 0x60]
mov ecx, esi
push dword [esi + 0x1c]
call fcn.0040971d
test al, al
je 0x40934b
jmp 0x408ee2
cmp eax, 0x12e
je 0x408f84
cmp eax, 0x12d
jne 0x409304
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 [0x4deab4]
lea eax, [ebp - 0x15c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0049bf67
push 0x65b3
lea ecx, [ebp - 0x10]
call fcn.0049ce0f
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push edi
call fcn.00495ebc
push dword [ebp - 0x10]
mov ecx, esi
push 0x4033
call fcn.0049b369
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.0049bdde
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0049bdde
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0049bdde
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0049bdde
jmp 0x408de8
lea eax, [ebp - 0x4c]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000005
push dword [esi + 0x60]
call dword [0x4deab4]
test eax, eax
jne 0x40902c
mov dword [ebp - 0x20], ebx
mov eax, dword [0x4deadc]
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.00409b31
test al, al
je 0x4092fc
jmp 0x409092
cmp dword [ebp - 0x38], 1
jne 0x409092
mov eax, dword [0x4deadc]
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.00409b31
test al, al
je 0x40938f
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esi + 0x60]
mov dword [esi + 0x68], ebx
call dword [0x4deac0]
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x60], ebx
mov eax, dword [0x4deadc]
mov byte [ebp - 4], 5
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x28]
mov byte [eax + 0x310], 1
call fcn.0049bdde
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0049bdde
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0049bdde
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0049bdde
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0049bdde
mov ecx, dword [ebp - 0x3c]
inc ecx
cmp ecx, dword [0x4deae0]
mov dword [ebp - 0x3c], ecx
jl 0x408d74
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [esi + 0x74], 1
mov byte [esi + 0x70], bl
call fcn.0049bdde
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [0x4dbfc4]
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.004095e6
mov eax, dword [ebp - 0x30]
lea ecx, [esi + 0x7c]
add eax, 0x104
push eax
push edi
call fcn.00495ebc
push dword [ebp - 0x20]
lea ecx, [esi + 0x7c]
push 0x4d0e18
call fcn.00495ebc
mov ecx, esi
call fcn.004095d2
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
jmp 0x4093bd
xor esi, esi
jmp 0x4093c2
push dword [ebp - 0x18]
lea ecx, [esi + 0x7c]
push edi
jmp 0x40933b
mov eax, dword [0x4dbfc4]
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.004095e6
lea ecx, [esi + 0x7c]
push 0x65b7
call fcn.0049ce0f
push dword [ebp - 0x1c]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.00495ebc
push dword [ebp - 0x20]
mov ecx, edi
push 0x4d0e18
call fcn.00495ebc
mov ecx, esi
call fcn.004095d2
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.0049bdde
jmp 0x409392
mov eax, dword [0x4dbfc4]
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.004095e6
lea ecx, [esi + 0x7c]
push 0x65ba
call fcn.0049ce0f
push dword [ebp - 0x30]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.00495ebc
push dword [ebp - 0x20]
mov ecx, edi
push 0x4d0e18
call fcn.00495ebc
mov ecx, esi
call fcn.004095d2
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
jmp 0x4091f7
mov eax, dword [0x4dbfc4]
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.004095e6
lea ecx, [esi + 0x7c]
push 0x65bb
call fcn.0049ce0f
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.00495ebc
mov ecx, esi
call fcn.004095d2
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x4091f7
xor esi, esi
jmp 0x409392
mov eax, dword [0x4dbfc4]
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.004095e6
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.00495ebc
mov ecx, esi
call fcn.004095d2
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x4091f7
mov esi, dword [ebp - 0x48]
jmp 0x409392
push eax
lea eax, [ebp - 0x10]
push 0x4d0e14
push eax
call fcn.00496574
add esp, 0xc
lea ecx, [esi + 0x7c]
push 0x65b9
call fcn.0049ce0f
push dword [ebp - 0x30]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.00495ebc
push dword [ebp - 0x10]
mov ecx, edi
push 0x4d0e18
call fcn.00495ebc
mov ecx, esi
call fcn.004095d2
mov esi, eax
jmp 0x409392
mov eax, dword [0x4dbfc4]
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.004095e6
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.00495ebc
mov ecx, esi
call fcn.004095d2
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x4091f7
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.0049bdde
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0049bdde
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0049bdde
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0049bdde
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0049bdde
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049bdde
mov eax, esi
jmp 0x409122