Function at 0x409fea
Capabilities:
Check http status code

Disassembly:
mov eax, 0x4b0604
call fcn.0048a7d0
sub esp, 0x150
mov eax, dword [0x4ea054]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040a780
test al, al
jne 0x40a031
mov ecx, esi
call fcn.0040a972
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004a5f26
mov eax, ebx
jmp 0x40a4c2
push 0x65b6
lea ecx, [ebp - 0x10]
mov dword [esi + 0x84], ebx
call fcn.004a6ff7
push dword [ebp - 0x10]
mov ecx, esi
push 0x4033
call fcn.004a5493
xor edi, edi
cmp dword [0x4eebf8], ebx
mov dword [ebp - 0x34], ebx
jle 0x40a0e9
mov eax, dword [0x4eebf4]
mov eax, dword [eax + edi*4]
cmp byte [eax + 0x310], bl
jne 0x40a0cd
inc dword [esi + 0x84]
mov eax, dword [0x4eebf4]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 0x30c]
cmp ecx, ebx
je 0x40a090
mov eax, ecx
jmp 0x40a0a1
push eax
mov ecx, esi
push dword [0x4eebe8]
push dword [esi + 0x1c]
call fcn.0040abef
cmp eax, ebx
je 0x40a0b9
cmp eax, 0xffffffff
je 0x40a0b9
mov ecx, dword [0x4eebf4]
mov ecx, dword [ecx + edi*4]
mov dword [ecx + 0x30c], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x40a0c9
cmp eax, 0xffffffff
je 0x40a0c9
add dword [ebp - 0x34], eax
jmp 0x40a0cd
or dword [ebp - 0x34], 0xffffffff
mov ecx, esi
call fcn.0040a962
test al, al
jne 0x40a01e
inc edi
cmp edi, dword [0x4eebf8]
jl 0x40a064
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x90], eax
mov dword [esi + 0x88], ebx
xor ecx, ecx
cmp dword [0x4eebf8], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ecx
jle 0x40a4aa
mov edi, 0x4dd1d0
mov eax, dword [0x4eebf4]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 0x310], bl
jne 0x40a497
mov dword [esi + 0x8c], eax
mov eax, dword [0x4eebf4]
mov eax, dword [eax + ecx*4]
lea ecx, [esi + 0x80]
mov dword [ebp - 0x30], eax
add eax, 0x104
push eax
call fcn.004a60af
push dword [ebp - 0x30]
inc dword [esi + 0x88]
lea ecx, [ebp - 0x18]
call fcn.004a5f94
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 0x40a4d1
mov eax, dword [0x4eebf4]
mov ecx, dword [ebp - 0x3c]
push dword [eax + ecx*4]
mov ecx, esi
push dword [ebp - 0x18]
call fcn.0040aa06
mov ecx, esi
call fcn.0040a962
test al, al
jne 0x40a527
mov eax, dword [0x4ea054]
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.0040ab3c
test al, al
je 0x40a52e
push 3
pop eax
cmp dword [ebp - 0x38], eax
je 0x40a209
push 1
pop eax
cmp dword [ebp - 0x38], eax
jne 0x40a6e0
mov dword [ebp - 0x14], 0x8000000
mov ecx, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
push eax
jne 0x40a21a
push ebx
push ebx
jmp 0x40a21e
push dword [ebp - 0x28]
push ecx
push dword [ebp - 0x54]
push dword [ebp - 0x1c]
push dword [0x4eebe8]
call dword [0x4eebc0]
cmp eax, ebx
mov dword [esi + 0x64], eax
je 0x40a53a
cmp dword [ebp - 0x38], 3
jne 0x40a25b
push esi
push 0x84400000
push 0x4ddd18
push ebx
push ebx
push dword [ebp - 0x24]
push ebx
push eax
call dword [0x4eebc4]
jmp 0x40a276
cmp dword [ebp - 0x38], 1
jne 0x40a279
push esi
push reloc.OLEAUT32.dll_SysReAllocString
push SysReAllocString
push dword [ebp - 0x24]
push eax
call dword [0x4eebc8]
mov dword [esi + 0x60], eax
cmp dword [esi + 0x60], ebx
je 0x40a5a1
cmp dword [ebp - 0x38], 3
jne 0x40a3fa
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x60]
call dword [0x4eebd0]
test eax, eax
je 0x40a600
mov ecx, esi
call fcn.0040a962
test al, al
jne 0x40a651
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 [0x4eebcc]
test eax, eax
je 0x40a658
mov eax, dword [ebp - 0x40]
cmp eax, 0xc8
je 0x40a3ae
cmp eax, 0x197
je 0x40a2f8
cmp eax, 0x191
jne 0x40a312
push dword [esi + 0x60]
mov ecx, esi
push dword [esi + 0x1c]
call fcn.0040aabd
test al, al
je 0x40a6eb
jmp 0x40a282
cmp eax, 0x12e
je 0x40a324
cmp eax, 0x12d
jne 0x40a6a4
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 [0x4eebcc]
lea eax, [ebp - 0x15c]
lea ecx, [ebp - 0x18]
push eax
call fcn.004a60af
push 0x65b3
lea ecx, [ebp - 0x10]
call fcn.004a6ff7
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push edi
call fcn.0049fefc
push dword [ebp - 0x10]
mov ecx, esi
push 0x4033
call fcn.004a5493
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004a5f26
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004a5f26
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004a5f26
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004a5f26
jmp 0x40a188
lea eax, [ebp - 0x4c]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000005
push dword [esi + 0x60]
call dword [0x4eebcc]
test eax, eax
jne 0x40a3cc
mov dword [ebp - 0x20], ebx
mov eax, dword [0x4eebf4]
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.0040aed1
test al, al
je 0x40a69c
jmp 0x40a432
cmp dword [ebp - 0x38], 1
jne 0x40a432
mov eax, dword [0x4eebf4]
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.0040aed1
test al, al
je 0x40a72f
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esi + 0x60]
mov dword [esi + 0x68], ebx
call dword [0x4eebd8]
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x60], ebx
mov eax, dword [0x4eebf4]
mov byte [ebp - 4], 5
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x28]
mov byte [eax + 0x310], 1
call fcn.004a5f26
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004a5f26
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004a5f26
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004a5f26
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004a5f26
mov ecx, dword [ebp - 0x3c]
inc ecx
cmp ecx, dword [0x4eebf8]
mov dword [ebp - 0x3c], ecx
jl 0x40a114
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [esi + 0x74], 1
mov byte [esi + 0x70], bl
call fcn.004a5f26
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [0x4ea054]
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.0040a986
mov eax, dword [ebp - 0x30]
lea ecx, [esi + 0x7c]
add eax, 0x104
push eax
push edi
call fcn.0049fefc
push dword [ebp - 0x20]
lea ecx, [esi + 0x7c]
push 0x4dde50
call fcn.0049fefc
mov ecx, esi
call fcn.0040a972
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
jmp 0x40a75d
xor esi, esi
jmp 0x40a762
push dword [ebp - 0x18]
lea ecx, [esi + 0x7c]
push edi
jmp 0x40a6db
mov eax, dword [0x4ea054]
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.0040a986
lea ecx, [esi + 0x7c]
push 0x65b7
call fcn.004a6ff7
push dword [ebp - 0x1c]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.0049fefc
push dword [ebp - 0x20]
mov ecx, edi
push 0x4dde50
call fcn.0049fefc
mov ecx, esi
call fcn.0040a972
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
call fcn.004a5f26
jmp 0x40a732
mov eax, dword [0x4ea054]
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.0040a986
lea ecx, [esi + 0x7c]
push 0x65ba
call fcn.004a6ff7
push dword [ebp - 0x30]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.0049fefc
push dword [ebp - 0x20]
mov ecx, edi
push 0x4dde50
call fcn.0049fefc
mov ecx, esi
call fcn.0040a972
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
jmp 0x40a597
mov eax, dword [0x4ea054]
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.0040a986
lea ecx, [esi + 0x7c]
push 0x65bb
call fcn.004a6ff7
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.0049fefc
mov ecx, esi
call fcn.0040a972
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x40a597
xor esi, esi
jmp 0x40a732
mov eax, dword [0x4ea054]
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.0040a986
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.0049fefc
mov ecx, esi
call fcn.0040a972
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x40a597
mov esi, dword [ebp - 0x48]
jmp 0x40a732
push eax
lea eax, [ebp - 0x10]
push 0x4dde4c
push eax
call fcn.004a05b4
add esp, 0xc
lea ecx, [esi + 0x7c]
push 0x65b9
call fcn.004a6ff7
push dword [ebp - 0x30]
push edi
lea edi, [esi + 0x7c]
mov ecx, edi
call fcn.0049fefc
push dword [ebp - 0x10]
mov ecx, edi
push 0x4dde50
call fcn.0049fefc
mov ecx, esi
call fcn.0040a972
mov esi, eax
jmp 0x40a732
mov eax, dword [0x4ea054]
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.0040a986
push dword [ebp - 0x14]
lea ecx, [esi + 0x7c]
push edi
call fcn.0049fefc
mov ecx, esi
call fcn.0040a972
mov esi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
jmp 0x40a597
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004a5f26
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004a5f26
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004a5f26
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004a5f26
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004a5f26
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004a5f26
mov eax, esi
jmp 0x40a4c2