Function at 0x40a50b
Capabilities:
Check http status code

Disassembly:
mov eax, 0x4e2b94
call fcn.004bb144
sub esp, 0x150
mov eax, dword [0x52d2c4]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040aca1
test al, al
jne 0x40a552
mov ecx, esi
call fcn.0040ae93
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d83c8
mov eax, ebx
jmp 0x40a9e3
push 0x65b6
lea ecx, [ebp - 0x10]
mov dword [esi + 0x84], ebx
call fcn.004d9496
push dword [ebp - 0x10]
mov ecx, esi
push 0x4033
call fcn.004d7935
xor edi, edi
cmp dword [0x531fa0], ebx
mov dword [ebp - 0x34], ebx
jle 0x40a60a
mov eax, dword [0x531f9c]
mov eax, dword [eax + edi*4]
cmp byte [eax + 0x310], bl
jne 0x40a5ee
inc dword [esi + 0x84]
mov eax, dword [0x531f9c]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 0x30c]
cmp ecx, ebx
je 0x40a5b1
mov eax, ecx
jmp 0x40a5c2
push eax
mov ecx, esi
push dword [0x531f90]
push dword [esi + 0x1c]
call fcn.0040b110
cmp eax, ebx
je 0x40a5da
cmp eax, 0xffffffff
je 0x40a5da
mov ecx, dword [0x531f9c]
mov ecx, dword [ecx + edi*4]
mov dword [ecx + 0x30c], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x40a5ea
cmp eax, 0xffffffff
je 0x40a5ea
add dword [ebp - 0x34], eax
jmp 0x40a5ee
or dword [ebp - 0x34], 0xffffffff
mov ecx, esi
call fcn.0040ae83
test al, al
jne 0x40a53f
inc edi
cmp edi, dword [0x531fa0]
jl 0x40a585
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x90], eax
mov dword [esi + 0x88], ebx
xor ecx, ecx
cmp dword [0x531fa0], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ecx
jle 0x40a9cb
mov edi, 0x5111e0
mov eax, dword [0x531f9c]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 0x310], bl
jne 0x40a9b8
mov dword [esi + 0x8c], eax
mov eax, dword [0x531f9c]
mov eax, dword [eax + ecx*4]
lea ecx, [esi + 0x80]
mov dword [ebp - 0x30], eax
add eax, 0x104
push eax
call fcn.004d8551
push dword [ebp - 0x30]
inc dword [esi + 0x88]
lea ecx, [ebp - 0x18]
call fcn.004d8436
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 0x40a9f2
mov eax, dword [0x531f9c]
mov ecx, dword [ebp - 0x3c]
push dword [eax + ecx*4]
mov ecx, esi
push dword [ebp - 0x18]
call fcn.0040af27
mov ecx, esi
call fcn.0040ae83
test al, al
jne 0x40aa48
mov eax, dword [0x52d2c4]
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.0040b05d
test al, al
je 0x40aa4f
push 3
pop eax
cmp dword [ebp - 0x38], eax
je 0x40a72a
push 1
pop eax
cmp dword [ebp - 0x38], eax
jne 0x40ac01
mov dword [ebp - 0x14], 0x8000000
mov ecx, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
push eax
jne 0x40a73b
push ebx
push ebx
jmp 0x40a73f
push dword [ebp - 0x28]
push ecx
push dword [ebp - 0x54]
push dword [ebp - 0x1c]
push dword [0x531f90]
call dword [0x531f68]
cmp eax, ebx
mov dword [esi + 0x64], eax
je 0x40aa5b
cmp dword [ebp - 0x38], 3
jne 0x40a77c
push esi
push 0x84400000
push 0x511d28
push ebx
push ebx
push dword [ebp - 0x24]
push ebx
push eax
call dword [0x531f6c]
jmp 0x40a797
cmp dword [ebp - 0x38], 1
jne 0x40a79a
push esi
push reloc.OLEAUT32.dll_SysReAllocString
push SysReAllocStringLen
push dword [ebp - 0x24]
push eax
call dword [0x531f70]
mov dword [esi + 0x60], eax
cmp dword [esi + 0x60], ebx
je 0x40aac2
cmp dword [ebp - 0x38], 3
jne 0x40a91b
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x60]
call dword [0x531f78]
test eax, eax
je 0x40ab21
mov ecx, esi
call fcn.0040ae83
test al, al
jne 0x40ab72
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 [0x531f74]
test eax, eax
je 0x40ab79
mov eax, dword [ebp - 0x40]
cmp eax, 0xc8
je 0x40a8cf
cmp eax, 0x197
je 0x40a819
cmp eax, 0x191
jne 0x40a833
push dword [esi + 0x60]
mov ecx, esi
push dword [esi + 0x1c]
call fcn.0040afde
test al, al
je 0x40ac0c
jmp 0x40a7a3
cmp eax, 0x12e
je 0x40a845
cmp eax, 0x12d
jne 0x40abc5
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 [0x531f74]
lea eax, [ebp - 0x15c]
lea ecx, [ebp - 0x18]
push eax
call fcn.004d8551
push 0x65b3
lea ecx, [ebp - 0x10]
call fcn.004d9496
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push edi
call fcn.004d21a0
push dword [ebp - 0x10]
mov ecx, esi
push 0x4033
call fcn.004d7935
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004d83c8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004d83c8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004d83c8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004d83c8
jmp 0x40a6a9
lea eax, [ebp - 0x4c]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000005
push dword [esi + 0x60]
call dword [0x531f74]
test eax, eax
jne 0x40a8ed
mov dword [ebp - 0x20], ebx
mov eax, dword [0x531f9c]
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.0040b3f2
test al, al
je 0x40abbd
jmp 0x40a953
cmp dword [ebp - 0x38], 1
jne 0x40a953
mov eax, dword [0x531f9c]
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.0040b3f2
test al, al
je 0x40ac50
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esi + 0x60]
mov dword [esi + 0x68], ebx
call dword [0x531f80]
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x60], ebx
mov eax, dword [0x531f9c]
mov byte [ebp - 4], 5
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x28]
mov byte [eax + 0x310], 1
call fcn.004d83c8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004d83c8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004d83c8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004d83c8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004d83c8
mov ecx, dword [ebp - 0x3c]
inc ecx
cmp ecx, dword [0x531fa0]
mov dword [ebp - 0x3c], ecx
jl 0x40a635
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [esi + 0x74], 1
mov byte [esi + 0x70], bl
call fcn.004d83c8
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [0x52d2c4]
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.0040aea7
mov eax, dword [ebp - 0x30]
lea ecx, [esi + 0x7c]
add eax, 0x104
push eax
push edi
call fcn.004d21a0
push dword [ebp - 0x20]
lea ecx, [esi + 0x7c]
push 0x511e60
call fcn.004d21a0
mov ecx, esi
call fcn.0040ae93
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
jmp 0x40ac7e
xor esi, esi
jmp 0x40ac83
push dword [ebp - 0x18]
lea ecx, [esi + 0x7c]
push edi
jmp 0x40abfc
mov eax, dword [0x52d2c4]
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.0040aea7
lea ecx, [esi + 0x7c]
push 0x65b7
call fcn.004d9496
push dword [ebp - 0x1c]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.004d21a0
push dword [ebp - 0x20]
mov ecx, edi
push 0x511e60
call fcn.004d21a0
mov ecx, esi
call fcn.0040ae93
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.004d83c8
jmp 0x40ac53
mov eax, dword [0x52d2c4]
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.0040aea7
lea ecx, [esi + 0x7c]
push 0x65ba
call fcn.004d9496
push dword [ebp - 0x30]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.004d21a0
push dword [ebp - 0x20]
mov ecx, edi
push 0x511e60
call fcn.004d21a0
mov ecx, esi
call fcn.0040ae93
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
jmp 0x40aab8
mov eax, dword [0x52d2c4]
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.0040aea7
lea ecx, [esi + 0x7c]
push 0x65bb
call fcn.004d9496
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.004d21a0
mov ecx, esi
call fcn.0040ae93
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x40aab8
xor esi, esi
jmp 0x40ac53
mov eax, dword [0x52d2c4]
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.0040aea7
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.004d21a0
mov ecx, esi
call fcn.0040ae93
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x40aab8
mov esi, dword [ebp - 0x48]
jmp 0x40ac53
push eax
lea eax, [ebp - 0x10]
push 0x511e5c
push eax
call fcn.004d2858
add esp, 0xc
lea ecx, [esi + 0x7c]
push 0x65b9
call fcn.004d9496
push dword [ebp - 0x30]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.004d21a0
push dword [ebp - 0x10]
mov ecx, edi
push 0x511e60
call fcn.004d21a0
mov ecx, esi
call fcn.0040ae93
mov esi, eax
jmp 0x40ac53
mov eax, dword [0x52d2c4]
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.0040aea7
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.004d21a0
mov ecx, esi
call fcn.0040ae93
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x40aab8
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004d83c8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004d83c8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004d83c8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004d83c8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004d83c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004d83c8
mov eax, esi
jmp 0x40a9e3