Function at 0x40abf0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x47c554]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 1
push ebx
push esi
push edi
jne 0x40af95
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor esi, esi
test esi, esi
jne 0x40ac26
call edi
mov dword [0x47ceb0], eax
inc esi
jmp 0x40ac18
mov dword [esi*4 + 0x47ceb0], 0xffffffff
inc esi
cmp esi, 3
jl 0x40ac18
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [0x47cea8], eax
call esi
push 4
mov dword [0x47ceac], eax
lea eax, [ebp - 0x194]
push eax
push 4
push 0x45aaa0
push str.SOFTWAREIsitec_InternationalIsiPlc
push 0
call fcn.0043abc0
add esp, 0x18
test al, al
jne 0x40ac88
xor ecx, ecx
mov dword [ebp - 0x194], ecx
jmp 0x40ac8e
mov ecx, dword [ebp - 0x194]
mov al, cl
shr ecx, 1
and al, 1
and cl, 1
push 0
mov byte [0x4b0779], al
mov byte [0x4b0778], cl
call fcn.00443120
push eax
call fcn.0043f3d1
add esp, 8
call fcn.0043f3b0
imul ecx, eax, 0x3e7
mov esi, 0x4af520
mov eax, 0x80010003
imul ecx
add edx, ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
xor edi, edi
mov word [0x4b077a], ax
nop dword [eax]
push edi
push str.SOFTWAREIsitec_InternationalIsiPlcOldProjetsProjet_u
lea eax, [ebp - 0x190]
push 0x81
push eax
call fcn.004038d0
push 0x105
lea ebx, [esi + 0x105]
push ebx
push 1
push str.NomFic
lea eax, [ebp - 0x190]
push eax
push 0
call fcn.0043abc0
add esp, 0x28
test al, al
je 0x40ad41
push 0x105
push esi
push 1
push str.Path
lea eax, [ebp - 0x190]
push eax
push 0
call fcn.0043abc0
add esp, 0x18
test al, al
jne 0x40ad47
mov byte [ebx], 0
mov byte [esi], 0
add esi, 0x20a
inc edi
cmp esi, 0x4afd48
jl 0x40ace0
push 0x2153c
push 0
push 0x48dfb0
call fcn.0043d400
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0xc
push 0x48dfb0
call esi
mov ecx, 0x48dfd0
nop dword [eax]
mov dword [ecx + 4], 0
lea eax, [ecx + 0x28]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x10], eax
lea eax, [ecx + 0x128]
mov dword [ecx], 0x28
mov dword [ecx + 0x18], 0xff00ff
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x234], 0
add ecx, 0x254
cmp ecx, 0x4af4f4
jl 0x40ad80
push 1
call fcn.004263a0
push 0x110f0
push 0
push 0x4b07c8
call fcn.0043d400
push 0x110f0
push 0
push 0x47cec0
call fcn.0043d400
push 0x105
push 0x4b08e1
push 1
push str.NomFic
push str.SOFTWAREIsitec_InternationalIsiPlcRunProjet
push 0
call fcn.0043abc0
add esp, 0x34
test al, al
je 0x40ae4f
push 0x105
push 0x4b07dc
push 1
push str.Path
push str.SOFTWAREIsitec_InternationalIsiPlcRunProjet
push 0
call fcn.0043abc0
add esp, 0x18
test al, al
jne 0x40ae5d
mov byte [0x4b08e1], 0
mov byte [0x4b07dc], 0
push 0x4af4f8
mov byte [0x4b07c8], 0
mov byte [0x47cebc], 0
call esi
push 0xb968
push 0
push 0x4c6498
mov dword [0x4af510], 0
mov dword [0x4af514], 0
call fcn.0043d400
add esp, 0xc
push 0x4c6498
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov esi, 0x4c7730
nop dword [eax]
push 0x4f4c0
push 0
lea eax, [esi + 4]
push eax
push esi
call edi
add esi, 0x1288
cmp esi, 0x4d3080
jl 0x40aeb0
push 1
call fcn.00427c80
xorps xmm0, xmm0
push 0x4b07b0
movups xmmword [0x4d1e00], xmm0
call fcn.004132d0
add esp, 8
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
lea eax, [ebp - 0x10c]
push 0x5c
push eax
je 0x40af3e
call fcn.0043cad0
add esp, 8
lea ecx, [ebp - 8]
sub ecx, eax
lea eax, [ebp - 0x10c]
push str...CanOpen.xml
push ecx
push 0x5c
push eax
call fcn.0043cad0
add esp, 8
inc eax
push eax
call fcn.004038d0
jmp 0x40af69
call fcn.0043cad0
add esp, 8
lea ecx, [ebp - 8]
sub ecx, eax
lea eax, [ebp - 0x10c]
push str.CanOpen.xml
push ecx
push 0x5c
push eax
call fcn.0043cad0
add esp, 8
inc eax
push eax
call fcn.0043f2f3
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00402a50
add esp, 8
mov dword [0x4b07c0], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b572
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x4c6498
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x4c7734
nop dword [eax]
push dword [esi - 4]
call edi
push dword [esi]
call edi
add esi, 0x1288
cmp esi, 0x4d3084
jl 0x40afb0
push 0
call fcn.00427c80
add esp, 4
push 0x4af4f8
call ebx
push 0
call fcn.004263a0
add esp, 4
push dword [0x47cea8]
call edi
push dword [0x47ceac]
call edi
push 0x48dfb0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, 0x48e204
mov eax, dword [esi]
test eax, eax
je 0x40b015
push eax
push 0
push dword [0x47ceb0]
call edi
add esi, 0x254
cmp esi, 0x4af728
jl 0x40b004
mov edi, dword [sym.imp.KERNEL32.dll_HeapDestroy]
xor esi, esi
nop dword [eax + eax]
test esi, esi
je 0x40b043
mov eax, dword [esi*4 + 0x47ceb0]
cmp eax, 0xffffffff
je 0x40b043
push eax
call edi
inc esi
cmp esi, 3
jl 0x40b030
push dword [0x4b07c0]
call fcn.00402de0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.0043b572
mov esp, ebp
pop ebp
ret