Function at 0x40a465
Capabilities:
Check http status code

Disassembly:
mov eax, 0x4d9c08
call fcn.004b36d0
sub esp, 0x150
mov eax, dword [0x52041c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040abfb
test al, al
jne 0x40a4ac
mov ecx, esi
call fcn.0040aded
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cf46d
mov eax, ebx
jmp 0x40a93d
push 0x65b6
lea ecx, [ebp - 0x10]
mov dword [esi + 0x84], ebx
call fcn.004d0547
push dword [ebp - 0x10]
mov ecx, esi
push 0x4033
call fcn.004ce9da
xor edi, edi
cmp dword [0x5230a0], ebx
mov dword [ebp - 0x34], ebx
jle 0x40a564
mov eax, dword [0x52309c]
mov eax, dword [eax + edi*4]
cmp byte [eax + 0x310], bl
jne 0x40a548
inc dword [esi + 0x84]
mov eax, dword [0x52309c]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 0x30c]
cmp ecx, ebx
je 0x40a50b
mov eax, ecx
jmp 0x40a51c
push eax
mov ecx, esi
push dword [0x523090]
push dword [esi + 0x1c]
call fcn.0040b06a
cmp eax, ebx
je 0x40a534
cmp eax, 0xffffffff
je 0x40a534
mov ecx, dword [0x52309c]
mov ecx, dword [ecx + edi*4]
mov dword [ecx + 0x30c], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x40a544
cmp eax, 0xffffffff
je 0x40a544
add dword [ebp - 0x34], eax
jmp 0x40a548
or dword [ebp - 0x34], 0xffffffff
mov ecx, esi
call fcn.0040addd
test al, al
jne 0x40a499
inc edi
cmp edi, dword [0x5230a0]
jl 0x40a4df
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x90], eax
mov dword [esi + 0x88], ebx
xor ecx, ecx
cmp dword [0x5230a0], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ecx
jle 0x40a925
mov edi, 0x5061e0
mov eax, dword [0x52309c]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 0x310], bl
jne 0x40a912
mov dword [esi + 0x8c], eax
mov eax, dword [0x52309c]
mov eax, dword [eax + ecx*4]
lea ecx, [esi + 0x80]
mov dword [ebp - 0x30], eax
add eax, 0x104
push eax
call fcn.004cf5f6
push dword [ebp - 0x30]
inc dword [esi + 0x88]
lea ecx, [ebp - 0x18]
call fcn.004cf4db
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 0x40a94c
mov eax, dword [0x52309c]
mov ecx, dword [ebp - 0x3c]
push dword [eax + ecx*4]
mov ecx, esi
push dword [ebp - 0x18]
call fcn.0040ae81
mov ecx, esi
call fcn.0040addd
test al, al
jne 0x40a9a2
mov eax, dword [0x52041c]
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.0040afb7
test al, al
je 0x40a9a9
push 3
pop eax
cmp dword [ebp - 0x38], eax
je 0x40a684
push 1
pop eax
cmp dword [ebp - 0x38], eax
jne 0x40ab5b
mov dword [ebp - 0x14], 0x8000000
mov ecx, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
push eax
jne 0x40a695
push ebx
push ebx
jmp 0x40a699
push dword [ebp - 0x28]
push ecx
push dword [ebp - 0x54]
push dword [ebp - 0x1c]
push dword [0x523090]
call dword [0x523068]
cmp eax, ebx
mov dword [esi + 0x64], eax
je 0x40a9b5
cmp dword [ebp - 0x38], 3
jne 0x40a6d6
push esi
push 0x84400000
push 0x506d28
push ebx
push ebx
push dword [ebp - 0x24]
push ebx
push eax
call dword [0x52306c]
jmp 0x40a6f1
cmp dword [ebp - 0x38], 1
jne 0x40a6f4
push esi
push reloc.OLEAUT32.dll_SysReAllocString
push SysReAllocString
push dword [ebp - 0x24]
push eax
call dword [0x523070]
mov dword [esi + 0x60], eax
cmp dword [esi + 0x60], ebx
je 0x40aa1c
cmp dword [ebp - 0x38], 3
jne 0x40a875
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x60]
call dword [0x523078]
test eax, eax
je 0x40aa7b
mov ecx, esi
call fcn.0040addd
test al, al
jne 0x40aacc
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 [0x523074]
test eax, eax
je 0x40aad3
mov eax, dword [ebp - 0x40]
cmp eax, 0xc8
je 0x40a829
cmp eax, 0x197
je 0x40a773
cmp eax, 0x191
jne 0x40a78d
push dword [esi + 0x60]
mov ecx, esi
push dword [esi + 0x1c]
call fcn.0040af38
test al, al
je 0x40ab66
jmp 0x40a6fd
cmp eax, 0x12e
je 0x40a79f
cmp eax, 0x12d
jne 0x40ab1f
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 [0x523074]
lea eax, [ebp - 0x15c]
lea ecx, [ebp - 0x18]
push eax
call fcn.004cf5f6
push 0x65b3
lea ecx, [ebp - 0x10]
call fcn.004d0547
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push edi
call fcn.004c959c
push dword [ebp - 0x10]
mov ecx, esi
push 0x4033
call fcn.004ce9da
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004cf46d
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004cf46d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004cf46d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004cf46d
jmp 0x40a603
lea eax, [ebp - 0x4c]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000005
push dword [esi + 0x60]
call dword [0x523074]
test eax, eax
jne 0x40a847
mov dword [ebp - 0x20], ebx
mov eax, dword [0x52309c]
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.0040b34c
test al, al
je 0x40ab17
jmp 0x40a8ad
cmp dword [ebp - 0x38], 1
jne 0x40a8ad
mov eax, dword [0x52309c]
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.0040b34c
test al, al
je 0x40abaa
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esi + 0x60]
mov dword [esi + 0x68], ebx
call dword [0x523080]
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x60], ebx
mov eax, dword [0x52309c]
mov byte [ebp - 4], 5
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x28]
mov byte [eax + 0x310], 1
call fcn.004cf46d
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004cf46d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004cf46d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004cf46d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004cf46d
mov ecx, dword [ebp - 0x3c]
inc ecx
cmp ecx, dword [0x5230a0]
mov dword [ebp - 0x3c], ecx
jl 0x40a58f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [esi + 0x74], 1
mov byte [esi + 0x70], bl
call fcn.004cf46d
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [0x52041c]
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.0040ae01
mov eax, dword [ebp - 0x30]
lea ecx, [esi + 0x7c]
add eax, 0x104
push eax
push edi
call fcn.004c959c
push dword [ebp - 0x20]
lea ecx, [esi + 0x7c]
push 0x506e60
call fcn.004c959c
mov ecx, esi
call fcn.0040aded
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
jmp 0x40abd8
xor esi, esi
jmp 0x40abdd
push dword [ebp - 0x18]
lea ecx, [esi + 0x7c]
push edi
jmp 0x40ab56
mov eax, dword [0x52041c]
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.0040ae01
lea ecx, [esi + 0x7c]
push 0x65b7
call fcn.004d0547
push dword [ebp - 0x1c]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.004c959c
push dword [ebp - 0x20]
mov ecx, edi
push 0x506e60
call fcn.004c959c
mov ecx, esi
call fcn.0040aded
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.004cf46d
jmp 0x40abad
mov eax, dword [0x52041c]
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.0040ae01
lea ecx, [esi + 0x7c]
push 0x65ba
call fcn.004d0547
push dword [ebp - 0x30]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.004c959c
push dword [ebp - 0x20]
mov ecx, edi
push 0x506e60
call fcn.004c959c
mov ecx, esi
call fcn.0040aded
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
jmp 0x40aa12
mov eax, dword [0x52041c]
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.0040ae01
lea ecx, [esi + 0x7c]
push 0x65bb
call fcn.004d0547
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.004c959c
mov ecx, esi
call fcn.0040aded
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x40aa12
xor esi, esi
jmp 0x40abad
mov eax, dword [0x52041c]
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.0040ae01
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.004c959c
mov ecx, esi
call fcn.0040aded
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x40aa12
mov esi, dword [ebp - 0x48]
jmp 0x40abad
push eax
lea eax, [ebp - 0x10]
push 0x506e5c
push eax
call fcn.004c9c0f
add esp, 0xc
lea ecx, [esi + 0x7c]
push 0x65b9
call fcn.004d0547
push dword [ebp - 0x30]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.004c959c
push dword [ebp - 0x10]
mov ecx, edi
push 0x506e60
call fcn.004c959c
mov ecx, esi
call fcn.0040aded
mov esi, eax
jmp 0x40abad
mov eax, dword [0x52041c]
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.0040ae01
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.004c959c
mov ecx, esi
call fcn.0040aded
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x40aa12
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004cf46d
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004cf46d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004cf46d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004cf46d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004cf46d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cf46d
mov eax, esi
jmp 0x40a93d