Function at 0x407aad
Capabilities:
Check http status code

Disassembly:
push 0x200
push 0x416f18
call fcn.00409e13
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
push 4
pop edx
mov dword [ebp - 0x38], edx
mov edi, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [0x418074]
cmp dword [ecx + 0x88], ebx
je 0x407ae8
cmp dword [ecx + 0x98], ebx
jne 0x407b36
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], edx
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x20000013
mov esi, dword [ebp + 8]
push dword [esi + 0x52e0]
mov esi, dword [esi + 0x5314]
mov ecx, esi
call dword [0x4193a0]
call esi
test eax, eax
je 0x407b33
cmp dword [ebp - 0x28], 0xc8
je 0x407b33
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x407d4b
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax + 0x52e0]
mov esi, dword [eax + 0x5318]
mov ecx, esi
call dword [0x4193a0]
call esi
test eax, eax
je 0x407b9e
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x20]
push edx
push eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x24]
push eax
mov esi, dword [ebp + 8]
push dword [esi + 0x52e0]
mov esi, dword [esi + 0x531c]
mov ecx, esi
call dword [0x4193a0]
call esi
test eax, eax
je 0x407b9e
cmp dword [ebp - 0x20], 0
je 0x407b9e
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x44], eax
jmp 0x407b33
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
test ecx, ecx
je 0x407cfd
mov dword [ebp - 0x20], 0x82
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x404020
push 0xffff
mov edi, dword [ebp + 8]
push dword [edi + 0x52e0]
mov esi, dword [edi + 0x5314]
mov ecx, esi
call dword [0x4193a0]
call esi
test eax, eax
je 0x407c0a
push ebx
push ebx
push 0x41
push 0x418405
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x407c10
mov byte [0x418405], bl
mov dword [ebp - 0x20], 0x50
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x404038
push 0xffff
push dword [edi + 0x52e0]
mov esi, dword [edi + 0x5314]
mov ecx, esi
call dword [0x4193a0]
call esi
push ebx
test eax, eax
je 0x407c99
push ebx
push 0x28
lea eax, [ebp - 0x6c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], ebx
push 0xa
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x6c]
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov esi, eax
push esi
push 0x403ffc
push 0xffffffffffffffff
push 0x28
lea eax, [edi + 0x5348]
push eax
call fcn.00412fc6
add esp, 0x20
mov dword [0x418304], esi
jmp 0x407cc0
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push 0x20000013
push dword [edi + 0x52e0]
mov esi, dword [edi + 0x5314]
mov ecx, esi
call dword [0x4193a0]
call esi
mov eax, dword [0x418074]
cmp dword [eax + 0x88], ebx
je 0x407cdf
test byte [eax + 0x98], 0x80
je 0x407cdf
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x407d4b
mov ecx, dword [ebp - 0x24]
push ecx
push dword [ebp + 0xc]
call fcn.004088a2
mov edi, eax
jmp 0x407cfa
mov dword [ebp - 0x3c], edi
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0x5c
test edi, edi
jne 0x407d13
and byte [esi], 0xfb
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
push 1
mov eax, dword [ebp + 0x14]
push dword [eax]
push dword [ebp + 0xc]
push 0x418300
call fcn.0040f1d1
test eax, eax
jne 0x407d49
push 0x404044
push 0x403c70
push 1
call fcn.0040c9e5
add esp, 0xc
and byte [esi], 0xfb
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov edi, ebx
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10