Function at 0x406312
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xadc
push esi
push edi
sub esp, 0xc
mov ecx, esp
lea eax, [ebp + 0xc]
push eax
call fcn.004116b4
lea eax, [ebp - 0xad0]
push eax
call fcn.0040430f
add esp, 0x10
push 0xf
pop ecx
mov esi, eax
lea edi, [ebp - 0xa8c]
rep movsd dword es:[edi], dword [esi]
push 0xf
pop ecx
lea esi, [ebp - 0xa8c]
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
push 0x425200
lea ecx, [ebp - 0x50]
call fcn.00411668
push 0
push 0
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.0041193a
push eax
call dword [0x641764]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0x100
and dword [ebp - 8], 0
push dword [0x630a14]
push dword [ebp - 0x40]
call dword [0x641840]
test eax, eax
jne 0x4063a1
mov dword [ebp - 8], 1
cmp dword [ebp - 0x58], 0
je 0x406594
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push dword [ebp - 0x58]
call dword [0x641864]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x40658b
cmp dword [ebp - 8], 0
je 0x4063e3
mov dword [ebp - 0x164], 0xc00100
jmp 0x4063ed
mov dword [ebp - 0x164], 0x400100
push 0
push dword [ebp - 0x164]
push 0
push 0
push dword [0x630860]
push dword [ebp - 0x18]
push 0x428d80
push dword [ebp - 0x54]
call dword [0x6418a4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406582
cmp dword [ebp - 8], 0
je 0x406448
mov eax, dword [ebp - 0x168]
or eax, 0x10300
mov dword [ebp - 0x168], eax
push 4
lea eax, [ebp - 0x168]
push eax
push 0x1f
push dword [ebp - 4]
call dword [0x64165c]
push 0
push 0
push 0
push 0
push dword [ebp - 4]
call dword [0x64182c]
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x174], 0x100
push 0
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x278]
push eax
push 0x13
push dword [ebp - 4]
call dword [0x6418bc]
test eax, eax
jne 0x4064b5
push str.ERROR
mov ecx, dword [ebp + 8]
call fcn.00411668
lea ecx, [ebp - 0x50]
call fcn.00411701
lea ecx, [ebp + 0xc]
call fcn.00411701
lea ecx, [ebp + 0x18]
call fcn.00411701
mov eax, dword [ebp + 8]
jmp 0x4065bb
lea eax, [ebp - 0x278]
push eax
call fcn.00412b90
pop ecx
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0xc8
jne 0x40654f
cmp dword [ebp - 0x170], 0
je 0x40654d
lea eax, [ebp - 0xa50]
push eax
push 0x7cf
lea eax, [ebp - 0xa48]
push eax
push dword [ebp - 4]
call dword [0x64178c]
mov dword [ebp - 0xa4c], eax
cmp dword [ebp - 0xa4c], 0
je 0x406511
cmp dword [ebp - 0xa50], 0
jne 0x406513
jmp 0x40654d
mov eax, dword [ebp - 0xa50]
mov byte [ebp + eax - 0xa48], 0
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0xadc]
push eax
lea ecx, [ebp - 0x50]
call fcn.0041185b
push eax
lea ecx, [ebp - 0x50]
call fcn.0041177a
lea ecx, [ebp - 0xadc]
call fcn.00411701
jmp 0x4064dd
jmp 0x406579
push str.ERROR
mov ecx, dword [ebp + 8]
call fcn.00411668
lea ecx, [ebp - 0x50]
call fcn.00411701
lea ecx, [ebp + 0xc]
call fcn.00411701
lea ecx, [ebp + 0x18]
call fcn.00411701
mov eax, dword [ebp + 8]
jmp 0x4065bb
push dword [ebp - 4]
call dword [0x641760]
push dword [ebp - 0x54]
call dword [0x641760]
push dword [ebp - 0x58]
call dword [0x641760]
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
call fcn.004116b4
lea ecx, [ebp - 0x50]
call fcn.00411701
lea ecx, [ebp + 0xc]
call fcn.00411701
lea ecx, [ebp + 0x18]
call fcn.00411701
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret