Function at 0x404b70
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c4
push ebx
push esi
push edi
sub esp, 0xc
lea eax, [ebp + 0x28]
mov ecx, esp
push eax
call fcn.0040cad0
lea ecx, [ebp - 0xf4]
push ecx
call fcn.00404310
mov edx, dword [ebp + 0x44]
push edx
mov esi, eax
mov eax, dword [ebp + 0x40]
mov ecx, 0xf
lea edi, [ebp - 0xb8]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x20]
xor ebx, ebx
push ecx
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x30], ebx
call fcn.0040e630
add esp, 0x20
lea ecx, [ebp + 0x34]
call fcn.0040cd50
push eax
call dword [0x643c6c]
push eax
lea ecx, [ebp + 0x34]
call fcn.0040cd50
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.0040e630
add esp, 0x10
push 0x4276a5
lea ecx, [ebp - 0x64]
call fcn.0040ca90
push 0x4276a5
lea ecx, [ebp - 0x2c]
call fcn.0040ca90
push 0x4276a5
lea ecx, [ebp - 0xc]
call fcn.0040ca90
push 0x4276a5
lea ecx, [ebp - 0x40]
call fcn.0040ca90
push 0x4276a5
lea ecx, [ebp - 0x4c]
call fcn.0040ca90
mov edx, dword [0x632fb8]
mov eax, dword [ebp - 0xb4]
push edx
push eax
xor esi, esi
call dword [0x643d84]
test eax, eax
jne 0x404c52
lea esi, [ebx + 1]
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40535e
lea ecx, [ebp - 0x58]
push 0x14
push ecx
call fcn.0040e380
add esp, 8
push eax
lea edx, [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040cbc0
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040cb70
lea ecx, [ebp - 0x7c]
call fcn.0040cb10
lea ecx, [ebp - 0x58]
call fcn.0040cb10
push str.___r_n
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x7c]
push edx
push str._r_n______
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040cc20
mov ecx, eax
call fcn.0040cbc0
mov ecx, eax
call fcn.0040cc20
push eax
lea ecx, [ebp - 0x40]
call fcn.0040cb70
lea ecx, [ebp - 0x58]
call fcn.0040cb10
lea ecx, [ebp - 0x7c]
call fcn.0040cb10
lea ecx, [ebp - 0x18]
call fcn.0040cb10
mov eax, dword [0x632c74]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x18]
push edx
push eax
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040cc20
mov ecx, eax
call fcn.0040cbc0
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
lea ecx, [ebp - 0x58]
call fcn.0040cb10
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa8]
push ebx
push ebx
push 3
push ebx
push ebx
push edx
push eax
push edi
call dword [0x643da8]
mov ecx, eax
mov dword [ebp - 0x70], ecx
cmp ecx, ebx
je 0x40535e
mov edx, dword [0x632e08]
mov eax, esi
neg eax
sbb eax, eax
push ebx
and eax, 0x800000
add eax, 0x400100
push eax
mov eax, dword [ebp - 0x8c]
push ebx
push ebx
push edx
mov edx, dword [0x632fd8]
push eax
push edx
push ecx
call dword [0x643dd8]
mov edi, eax
cmp edi, ebx
je 0x405354
cmp esi, ebx
je 0x404d98
or dword [ebp - 0x1c], 0x10300
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x1f
push edi
call dword [0x643bb4]
push 0x42a844
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cbc0
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push 0x42a84c
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
mov edx, dword [0x632e3c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
mov ecx, dword [0x632fac]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push str.__r_n_r_n
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0xc]
call fcn.0040cbc0
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push 0x42a84c
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push 0x42a844
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cbc0
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push 0x42a84c
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
mov edx, dword [0x632e3c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push str.build_id
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push str.__r_n_r_n
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
lea eax, [ebp - 0x58]
push eax
call fcn.004021b0
add esp, 4
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
call fcn.0040cbc0
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
lea ecx, [ebp - 0x58]
call fcn.0040cb10
push 0x42a84c
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push 0x42a844
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0xc]
call fcn.0040cbc0
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push 0x42a84c
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
mov ecx, dword [0x632e3c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
mov eax, dword [0x632f34]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push str.__r_n_r_n
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push 0x42a84c
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push 0x42a844
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0xc]
call fcn.0040cbc0
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push 0x42a84c
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
mov ecx, dword [0x632e3c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push str.file_data
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
push str.__r_n_r_n
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
lea ecx, [ebp - 0x40]
call fcn.0040cd50
push eax
call dword [0x643c6c]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x1c], eax
call fcn.0040cd50
push eax
call dword [0x643c6c]
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
add esi, eax
push esi
push ebx
call dword [0x643dac]
push eax
call dword [0x643d44]
lea ecx, [ebp - 0xc]
mov dword [ebp + 0xc], eax
call fcn.0040cd50
push eax
call dword [0x643c6c]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cd50
mov edx, dword [ebp + 0xc]
push eax
push edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
add esp, 0xc
push eax
push ecx
lea ecx, [ebp - 0xc]
call fcn.0040cd50
push eax
call dword [0x643c6c]
add eax, dword [ebp + 0xc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.0040cd50
push eax
call dword [0x643c6c]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040cd50
push eax
lea ecx, [ebp - 0xc]
call fcn.0040cd50
push eax
call dword [0x643c6c]
add eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x20]
push eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp + 0xc]
add esp, 0xc
push esi
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040cd50
push eax
call dword [0x643c6c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040cd50
push eax
push edi
call dword [0x643d70]
push 4
lea eax, [ebp + 0xc]
push eax
call fcn.0040e220
push ebx
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x1f4]
push edx
push 0x13
push edi
mov dword [ebp - 0x6c], 0x100
call dword [0x643df0]
test eax, eax
jne 0x4052c9
mov esi, dword [ebp + 8]
push str.ERROR
mov ecx, esi
call fcn.0040ca90
jmp 0x4053a2
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040e1f0
add esp, 4
cmp eax, 0xc8
jne 0x4052b5
lea ecx, [ebp - 0x1c]
push ecx
push 0x7cf
lea edx, [ebp - 0x9c4]
push edx
push edi
call dword [0x643cd4]
test eax, eax
je 0x40534d
lea ebx, [ebx]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40534d
mov byte [ebp + eax - 0x9c4], bl
lea eax, [ebp - 0x9c4]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0040cc20
push eax
lea ecx, [ebp - 0x64]
call fcn.0040cb70
lea ecx, [ebp - 0x18]
call fcn.0040cb10
lea edx, [ebp - 0x1c]
push edx
push 0x7cf
lea eax, [ebp - 0x9c4]
push eax
push edi
call dword [0x643cd4]
test eax, eax
jne 0x405300
push edi
call dword [0x643ca8]
mov ecx, dword [ebp - 0x70]
push ecx
call dword [0x643ca8]
push 4
lea edx, [ebp - 0x34]
push edx
call fcn.0040e220
push 4
lea eax, [ebp - 0x30]
push eax
call fcn.0040e220
lea ecx, [ebp - 0x2c]
call fcn.0040cc80
lea ecx, [ebp - 0xc]
call fcn.0040cc80
lea ecx, [ebp - 0x40]
call fcn.0040cc80
lea ecx, [ebp - 0x4c]
call fcn.0040cc80
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, esi
call fcn.0040cad0
lea ecx, [ebp - 0x4c]
call fcn.0040cb10
lea ecx, [ebp - 0x40]
call fcn.0040cb10
lea ecx, [ebp - 0xc]
call fcn.0040cb10
lea ecx, [ebp - 0x2c]
call fcn.0040cb10
lea ecx, [ebp - 0x64]
call fcn.0040cb10
lea ecx, [ebp + 0x10]
call fcn.0040cb10
lea ecx, [ebp + 0x1c]
call fcn.0040cb10
lea ecx, [ebp + 0x28]
call fcn.0040cb10
lea ecx, [ebp + 0x34]
call fcn.0040cb10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret