Function at 0x403ed0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.00420af0
mov eax, dword [0x43582c]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xfdc]
call fcn.00404230
push str._version
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040d4d0
add esp, 8
test eax, eax
jne 0x403f3b
push 0
push str.piperexe.exe
push str.version_3.12.xx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x1008], 0
lea ecx, [ebp - 0xfdc]
call fcn.00404310
mov eax, dword [ebp - 0x1008]
jmp 0x40421d
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xff0], ecx
mov dword [ebp - 0xfe8], 0x437ba0
mov edx, dword [ebp - 0xfe8]
mov dword [ebp - 0x1018], edx
mov eax, dword [ebp - 0xff0]
mov cl, byte [eax]
mov byte [ebp - 0xfdd], cl
mov edx, dword [ebp - 0xfe8]
mov al, byte [ebp - 0xfdd]
mov byte [edx], al
mov ecx, dword [ebp - 0xff0]
add ecx, 1
mov dword [ebp - 0xff0], ecx
mov edx, dword [ebp - 0xfe8]
add edx, 1
mov dword [ebp - 0xfe8], edx
cmp byte [ebp - 0xfdd], 0
jne 0x403f5a
lea eax, [ebp - 0xfdc]
push eax
call fcn.00404b30
add esp, 4
movzx ecx, byte [ebp - 0x43]
cmp ecx, 0x43
jne 0x40400e
mov byte [ebp - 0x43], 0x59
push 0x30
call fcn.0040f623
add esp, 4
mov dword [ebp - 0xff8], eax
cmp dword [ebp - 0xff8], 0
je 0x403feb
push 0x403ec0
mov ecx, dword [ebp - 0xff8]
call dword [sym.imp.piper.dll_public:_void___thiscall_pipe_user_int_console::constructor_double____cdecl___void__]
mov dword [ebp - 0xffc], eax
jmp 0x403ff5
mov dword [ebp - 0xffc], 0
mov edx, dword [ebp - 0xffc]
mov dword [ebp - 0x1010], edx
mov eax, dword [ebp - 0x1010]
mov dword [0x4381a0], eax
jmp 0x404062
push 0x44
call fcn.0040f623
add esp, 4
mov dword [ebp - 0x1000], eax
cmp dword [ebp - 0x1000], 0
je 0x404040
push 0x403ec0
mov ecx, dword [ebp - 0x1000]
call dword [sym.imp.piper.dll_public:_void___thiscall_pipe_user_int_win::constructor_double____cdecl___void__]
mov dword [ebp - 0xff4], eax
jmp 0x40404a
mov dword [ebp - 0xff4], 0
mov ecx, dword [ebp - 0xff4]
mov dword [ebp - 0x1014], ecx
mov edx, dword [ebp - 0x1014]
mov dword [0x4381a0], edx
mov eax, dword [0x4381a0]
mov dword [ebp - 0x6d4], eax
push 0x200
push 0x437fa0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0xfec], 0xffffffef
call dword [sym.imp.piper.dll_int___cdecl_piper_LibInit_void_]
mov edx, dword [0x4381a0]
mov eax, dword [edx]
mov ecx, dword [0x4381a0]
mov edx, dword [eax + 4]
call edx
test eax, eax
je 0x4041bd
lea eax, [ebp - 0x101c]
push eax
push 0
lea ecx, [ebp - 0xfdc]
push ecx
push 0x4068b0
push 0
push 0
call fcn.0040ea83
add esp, 0x18
mov dword [ebp - 0xfe4], eax
cmp dword [ebp - 0xfe4], 0
je 0x404162
push 0
push 0
push 0
lea edx, [ebp - 0x1038]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x404154
lea eax, [ebp - 0x1038]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x1038]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
mov edx, dword [ebp - 0xfe4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x404152
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp - 0xfe4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [ebp - 0xfe4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1004]
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4040e0
mov ecx, dword [ebp - 0x1030]
mov dword [ebp - 0xfec], ecx
jmp 0x4041bb
call fcn.0040e713
mov edx, dword [eax]
mov dword [ebp - 0xfec], edx
call fcn.0040e713
mov eax, dword [eax]
push eax
call fcn.0040e713
mov ecx, dword [eax]
push ecx
call fcn.0040e0ea
add esp, 4
push eax
push str.Cant_start_piperexe.exe:__s__i_
call fcn.0040dfe6
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.0040f0c7
add esp, 0x10
call fcn.0040dfe6
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.0040e4d9
add esp, 4
jmp 0x4041fa
mov dword [ebp - 0xfec], 0xffffffee
push str.Cant_start_piperexe.exe:_PUI_cant_be_started
call fcn.0040dfe6
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.0040f0c7
add esp, 8
call fcn.0040dfe6
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.0040e4d9
add esp, 4
call dword [sym.imp.piper.dll_void___cdecl_piper_LibFree_void_]
mov edx, dword [ebp - 0xfec]
mov dword [ebp - 0x100c], edx
lea ecx, [ebp - 0xfdc]
call fcn.00404310
mov eax, dword [ebp - 0x100c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d400
mov esp, ebp
pop ebp
ret 0x10