Function at 0x406c40
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x978
push ebx
push esi
push edi
sub esp, 0xc
mov esi, esp
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
inc eax
call fcn.00402930
mov dword [esi], eax
test eax, eax
je 0x406c75
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x406c75
push ecx
push eax
call dword [fcn.00639134]
lea ebx, [ebp - 0xa8]
call fcn.00404bc0
mov esi, eax
xor eax, eax
add esp, 0xc
mov ecx, 0xf
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
cmp byte [0x42cfec], al
je 0x406caa
lea esp, [esp]
inc eax
cmp byte [eax + 0x42cfec], 0
jne 0x406ca0
mov dword [ebp - 0x10], eax
inc eax
call fcn.00402930
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x406cc8
push 0x42cfec
push ebx
call dword [fcn.00639134]
push 0
push 0
push 0
push 1
push 0x42cfec
call dword [fcn.00638ff0]
mov ecx, dword [0x638c80]
mov edx, dword [ebp - 0x68]
push ecx
mov esi, eax
push edx
mov dword [ebp - 0x1c], esi
xor edi, edi
call dword [fcn.006390cc]
test eax, eax
jne 0x406cfa
lea edi, [eax + 1]
test esi, esi
je 0x406ea8
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x5c]
push 0
push 0
push 3
push 0
push 0
push eax
push ecx
push esi
call dword [0x6390f0]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x406ea1
mov edx, dword [0x638ab4]
mov eax, edi
neg eax
sbb eax, eax
push 0
and eax, 0x800000
add eax, 0x400100
push eax
mov eax, dword [ebp - 0x40]
push 0
push 0
push edx
push eax
push 0x434ab8
push ecx
call dword [0x639120]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x406e94
test edi, edi
je 0x406d7d
or dword [ebp - 8], 0x10300
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1f
push esi
call dword [0x638ef0]
push 0
push 0
push 0
push 0
push esi
call dword [0x6390b8]
push 0
lea edx, [ebp - 0x24]
push edx
mov edi, eax
lea eax, [ebp - 0x1a8]
push eax
push 0x13
push esi
mov dword [ebp - 0x24], 0x100
call dword [0x639138]
test eax, eax
jne 0x406dd4
mov edi, dword [ebp + 8]
mov esi, 0x434abc
call fcn.004271e0
mov eax, ebx
call fcn.00402a20
mov eax, dword [ebp + 0xc]
call fcn.00402a20
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1a8]
call fcn.00423d90
cmp eax, 0xc8
jne 0x406daf
test edi, edi
je 0x406e8d
lea ecx, [ebp - 0xc]
push ecx
push 0x7cf
lea edx, [ebp - 0x978]
push edx
push esi
call dword [fcn.00639018]
test eax, eax
je 0x406e8d
lea ecx, [ecx]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406e8d
lea edi, [ebp - 0x978]
lea esi, [ebp - 0x30]
lea ebx, [ebp - 0x18]
mov byte [ebp + eax - 0x978], 0
call fcn.00427310
mov esi, eax
mov eax, dword [ebp - 0x18]
mov edi, dword [esi + 8]
mov dword [ebp - 0x10], edi
test eax, eax
je 0x406e44
call fcn.00402a20
lea eax, [edi + 1]
call fcn.00402930
mov dword [ebp - 0x18], eax
test eax, eax
je 0x406e61
mov esi, dword [esi]
test esi, esi
je 0x406e61
push esi
push eax
call dword [fcn.00639134]
mov eax, dword [ebp - 0x30]
call fcn.00402a20
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push 0x7cf
lea ecx, [ebp - 0x978]
push ecx
push edx
call dword [fcn.00639018]
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
test eax, eax
jne 0x406e10
push esi
call dword [fcn.00638fec]
mov eax, dword [ebp - 0x20]
push eax
call dword [fcn.00638fec]
mov esi, dword [ebp - 0x1c]
push esi
call dword [fcn.00638fec]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
inc eax
call fcn.00402930
mov dword [esi], eax
test eax, eax
je 0x406ec9
test ebx, ebx
je 0x406ec9
push ebx
push eax
call dword [fcn.00639134]
mov eax, ebx
call fcn.00402a20
mov eax, dword [ebp + 0xc]
call fcn.00402a20
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret