Function at 0x40ca60
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 0x40cad9
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 0x40cd76
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 0x43ce44
push ecx
push 0x4350f4
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 0x40ce71
inc eax
cmp eax, 0x14
jle 0x40cb4d
xor eax, eax
xor esi, esi
lea edx, [eax - 1]
test edx, edx
jle 0x40cbd4
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 0x40cb92
mov byte [ecx], 0x20
jmp 0x40cbc5
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 0x40cb81
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 0x40cbde
test ebx, ebx
je 0x40ccc4
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 0x43ce58
push edx
push 0x4350fc
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 0x40cc80
cmp ebx, 0xc8
jge 0x40cc80
inc ebx
mov dl, byte [esp + 0xc8]
mov byte [esp + ebx - 1], dl
inc ecx
inc eax
cmp ecx, 0x14
jle 0x40cc56
mov edi, dword [ebp + 0x10]
test ebx, ebx
jle 0x40cdaf
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 0x40ccc8
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 0x40ccfe
dec eax
jne 0x40ccee
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.00412ee0
mov edx, dword [ebp + 0xc]
mov ecx, 1
jmp 0x40cd9b
inc ecx
cmp ecx, edi
jg 0x40ce6a
movzx eax, byte [ecx + edx - 1]
cmp eax, 0x20
jne 0x40cdda
jmp 0x40cd9a
push esi
push esi
push 1
push 0x435128
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 0x40ccc8
lea eax, [ecx - 1]
test eax, eax
jle 0x40ce5b
test edi, edi
jle 0x40ce5b
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 0x40ce0a
mov byte [ecx], 0x20
jmp 0x40ce53
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 0x40cdfd
add esp, 0x264
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, esi
jmp 0x40cdda
xor esi, esi
jmp 0x40cb68