Function at 0x501b60
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push esi
push edi
push ebx
sub esp, 0x264
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ecx, dword [eax]
test ecx, ecx
jne 0x501bd9
mov eax, dword [ebp + 0x18]
xor esi, esi
mov ebx, dword [ebp + 0x14]
lea ecx, [esp + 0x190]
cdq
mov dword [esp + 0x190], str._TMP_outil
mov dword [esp + 0x198], 0xa
mov dword [esp + 0x19c], esi
mov dword [esp + 0x1a0], ebx
lea ebx, [esp + 0xc8]
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1ac], edx
push esi
push 0xc8
push ebx
push esi
push 2
push ecx
call sub.libifcoremd.dll_for_concat
jmp 0x501e76
mov eax, 0x68db8bad
mov esi, ecx
imul ecx
mov ebx, edx
lea edx, [esp + 0x23c]
sar ebx, 0xc
sar esi, 0x1f
sub ebx, esi
imul eax, ebx, 0x2710
sub ecx, eax
lea eax, [esp + 0x1b0]
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x230], 0x14
mov dword [esp + 0x234], edx
mov dword [esp + 0x238], ecx
lea ecx, [esp + 0x230]
push 0x20
push 0x593ea4
push ecx
push 0x57fac8
push 0xa384ff00
push eax
call sub.libifcoremd.dll_for_write_int_fmt
add esp, 0x18
mov eax, 1
movzx edx, byte [esp + eax + 0x23b]
cmp edx, 0x20
jne 0x501f71
inc eax
cmp eax, 0x14
jle 0x501c4d
xor eax, eax
xor esi, esi
lea edx, [eax - 1]
test edx, edx
jle 0x501cd4
mov ecx, 1
mov edx, eax
mov dword [esp + 4], eax
mov esi, edx
mov dword [esp], ebx
mov ebx, ecx
cmp esi, 0x14
lea ecx, [esp + ebx + 0x23b]
jle 0x501c92
mov byte [ecx], 0x20
jmp 0x501cc5
mov edi, dword [esp + 4]
mov dword [esp + 8], esi
lea eax, [edi + ebx]
lea esi, [edi + ebx - 2]
sub eax, esi
lea edi, [esp + esi + 0x23c]
xor esi, esi
dec eax
push esi
cmovs eax, esi
cdq
push edx
push eax
push edi
push esi
push 1
push ecx
mov esi, dword [esp + 0x24]
call sub.libifcoremd.dll_for_cpystr
add esp, 0x1c
inc ebx
inc esi
cmp ebx, 0x14
jle 0x501c81
mov ebx, dword [esp]
xor esi, esi
mov edi, dword [ebp + 0x10]
mov byte [esp + 0x21c], 0x20
mov eax, esi
mov byte [esp + eax + 0x21d], 0x20
inc eax
cmp eax, 0x13
jl 0x501cde
test ebx, ebx
je 0x501dc4
mov dword [esp + 0x1b0], 0
lea eax, [esp + 0x21c]
mov dword [esp + 0x210], 0x14
lea edx, [esp + 0x210]
mov dword [esp + 0x214], eax
mov dword [esp + 0x218], ebx
push 0x20
push 0x593eb8
push edx
push 0x57fad0
push 0xa384ff00
lea ecx, [esp + 0x1c4]
push ecx
call sub.libifcoremd.dll_for_write_int_fmt
add esp, 0x18
mov ebx, esi
mov ecx, 1
lea eax, [esp + 0x21c]
mov dl, byte [eax]
mov byte [esp + 0xc8], dl
movzx edx, byte [esp + 0xc8]
cmp edx, 0x20
jle 0x501d80
cmp ebx, 0xc8
jge 0x501d80
inc ebx
mov dl, byte [esp + 0xc8]
mov byte [esp + ebx - 1], dl
inc ecx
inc eax
cmp ecx, 0x14
jle 0x501d56
mov edi, dword [ebp + 0x10]
test ebx, ebx
jle 0x501eaf
cmovle ebx, esi
mov eax, ebx
cdq
mov ecx, edx
lea eax, [esp]
push esi
push ecx
push ebx
push eax
push esi
push 0x14
lea eax, [esp + 0x234]
push eax
mov dword [esp + 0xe4], ecx
call sub.libifcoremd.dll_for_cpystr
mov ecx, dword [esp + 0xe4]
add esp, 0x1c
jmp 0x501dc8
mov ebx, esi
mov ecx, ebx
mov dword [esp + 0x1d0], str._WNCZONE_outil
mov eax, 0x14
mov dword [esp + 0x1d8], 0xe
mov dword [esp + 0x1dc], 0
movzx edx, byte [esp + eax + 0x23b]
cmp edx, 0x20
jne 0x501dfe
dec eax
jne 0x501dee
test eax, eax
lea edx, [esp + 0x23c]
mov dword [esp + 0x1e0], edx
cmovle eax, esi
cdq
mov dword [esp + 0x1e8], eax
lea eax, [esp + 0x21c]
mov dword [esp + 0x1f0], eax
mov dword [esp + 0x1f8], ebx
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x1ec], edx
cdq
mov dword [esp + 0x1fc], ecx
lea ecx, [esp + 0x1d0]
mov dword [esp + 0x200], ebx
lea ebx, [esp + 0xc8]
mov dword [esp + 0x208], eax
mov dword [esp + 0x20c], edx
push esi
push 0xc8
push ebx
push esi
push 4
push ecx
call sub.libifcoremd.dll_for_concat
add esp, 0x18
lea eax, [esp + 0x250]
push eax
push edi
push dword [ebp + 0xc]
push 0xc8
push ebx
call fcn.005375d0
mov edx, dword [ebp + 0xc]
mov ecx, 1
jmp 0x501e9b
inc ecx
cmp ecx, edi
jg 0x501f6a
movzx eax, byte [ecx + edx - 1]
cmp eax, 0x20
jne 0x501eda
jmp 0x501e9a
push esi
push esi
push 1
push 0x57fafc
push esi
push 0x14
lea eax, [esp + 0x234]
push eax
call sub.libifcoremd.dll_for_cpystr
add esp, 0x1c
test ebx, ebx
cmovle ebx, esi
mov eax, ebx
cdq
mov ecx, edx
jmp 0x501dc8
lea eax, [ecx - 1]
test eax, eax
jle 0x501f5b
test edi, edi
jle 0x501f5b
mov ebx, dword [ebp + 0xc]
mov edx, 1
mov eax, ecx
mov edi, edx
mov dword [esp + 0x254], ecx
mov esi, eax
lea ebx, [ebx + 1]
cmp esi, dword [ebp + 0x10]
lea ecx, [ebx - 1]
jle 0x501f0a
mov byte [ecx], 0x20
jmp 0x501f53
mov dword [esp + 0x258], esi
mov esi, dword [esp + 0x254]
mov dword [esp + 0x25c], ebx
mov ebx, dword [ebp + 0xc]
lea eax, [esi + edi]
lea edx, [esi + edi - 2]
sub eax, edx
lea esi, [ebx + edx]
xor ebx, ebx
dec eax
push ebx
cmovs eax, ebx
cdq
push edx
push eax
push esi
push ebx
push 1
push ecx
mov ebx, dword [esp + 0x278]
mov esi, dword [esp + 0x274]
call sub.libifcoremd.dll_for_cpystr
add esp, 0x1c
inc edi
inc esi
inc ebx
cmp edi, dword [ebp + 0x10]
jle 0x501efd
add esp, 0x264
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, esi
jmp 0x501eda
xor esi, esi
jmp 0x501c68