Function at 0x4181de
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2058]
mov eax, 0x2058
call fcn.00514d40
push 0xffffffffffffffff
push 0x52520a
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x59d300]
xor eax, ebp
mov dword [ebp + 0x2054], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x2060]
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], edi
cmp esi, edi
je 0x418ae3
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x418241
sub eax, edx
sar eax, 1
je 0x418ae3
call fcn.0040dbda
cmp byte [eax], 0
jne 0x4182f6
lea eax, [ebp - 0xc8]
push eax
call fcn.0040d9e1
push dword [ebp - 0x20]
lea esi, [ebp - 0x40]
mov dword [ebp - 4], 9
call fcn.0040b812
push eax
mov ebx, 0x543368
push ebx
lea eax, [ebp - 0xc0]
push str.CSystemCommands::RunProgram___filename
push eax
mov byte [ebp - 4], 0xa
call fcn.0040c0a0
pop ecx
pop ecx
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push eax
call fcn.0040b612
pop ecx
pop ecx
push 0
push 1
mov byte [ebp - 4], 9
call fcn.0040dac5
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040bf31
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 0xb
call fcn.0040ba4e
push 0
push 1
mov esi, edi
call fcn.0040dac5
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc8]
call fcn.0040c22b
jmp 0x41844a
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 4], 0xc
call fcn.0040b935
push esi
lea esi, [ebp - 0xe4]
mov byte [ebp - 4], 0xd
call fcn.0040b812
mov edi, eax
mov byte [ebp - 4], 0xe
call fcn.0040dbda
lea ecx, [ebp - 0x40]
call fcn.0040b84b
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x18], 8
jb 0x41833b
mov esi, dword [eax + 4]
jmp 0x41833e
lea esi, [eax + 4]
lea eax, [ebp - 0xc0]
push 0x54331c
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push esi
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push 0x543314
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push str.CSystemCommands::RunProgram___filename
push eax
call fcn.0040c0a0
pop ecx
pop ecx
mov ebx, 0x543368
push ebx
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push edi
push eax
call fcn.0040b612
pop ecx
pop ecx
xor edi, edi
push edi
push 1
lea esi, [ebp - 0x40]
call fcn.0040dac5
push edi
push 1
lea esi, [ebp - 0xe4]
mov byte [ebp - 4], 0xd
call fcn.0040dac5
lea eax, [ebp - 0x18]
push eax
call sub.log4cplusU.dll_public:_static_class_log4cplus::Logger___cdecl_log4cplus::Logger::getRoot_void_
pop ecx
mov esi, 0x2710
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x4183f9
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040b831
push 0x31
push str..SystemCommands.cpp
push eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x11
call sub.log4cplusU.dll_public:_void___thiscall_log4cplus::Logger::forcedLog_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___char_const___int_const
push edi
push 1
lea esi, [ebp - 0x40]
call fcn.0040dac5
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0xc
call fcn.0040b8a0
or dword [ebp - 4], 0xffffffff
jmp 0x41844a
call fcn.0040dbda
cmp byte [eax], 0
jne 0x4184f0
lea eax, [ebp - 0xc8]
push eax
call fcn.0040d9e1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0x14
test eax, eax
jne 0x418477
mov eax, 0x54323c
push eax
lea esi, [ebp - 0x40]
call fcn.0040b812
push eax
push ebx
lea eax, [ebp - 0xc0]
push str.CSystemCommands::RunProgram___parameters
push eax
mov byte [ebp - 4], 0x15
call fcn.0040c0a0
pop ecx
pop ecx
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push eax
call fcn.0040b612
pop ecx
pop ecx
push 0
push 1
mov byte [ebp - 4], 0x14
call fcn.0040dac5
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040bf31
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 0x16
call fcn.0040ba4e
push 0
push 1
mov esi, edi
call fcn.0040dac5
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc8]
call fcn.0040c22b
jmp 0x41864b
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 4], 0x17
call fcn.0040b935
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x18
test eax, eax
jne 0x418513
mov eax, 0x54323c
push eax
lea esi, [ebp - 0xe4]
call fcn.0040b812
mov edi, eax
mov byte [ebp - 4], 0x19
call fcn.0040dbda
lea ecx, [ebp - 0x40]
call fcn.0040b84b
mov byte [ebp - 4], 0x1a
cmp dword [eax + 0x18], 8
jb 0x418541
mov esi, dword [eax + 4]
jmp 0x418544
lea esi, [eax + 4]
lea eax, [ebp - 0xc0]
push 0x54331c
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push esi
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push 0x543314
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push str.CSystemCommands::RunProgram___parameters
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push ebx
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push edi
push eax
call fcn.0040b612
pop ecx
pop ecx
xor edi, edi
push edi
push 1
lea esi, [ebp - 0x40]
call fcn.0040dac5
push edi
push 1
lea esi, [ebp - 0xe4]
mov byte [ebp - 4], 0x18
call fcn.0040dac5
lea eax, [ebp - 0x18]
push eax
call sub.log4cplusU.dll_public:_static_class_log4cplus::Logger___cdecl_log4cplus::Logger::getRoot_void_
pop ecx
mov esi, 0x2710
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1b
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x4185fa
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040b831
push 0x32
push str..SystemCommands.cpp
push eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1c
call sub.log4cplusU.dll_public:_void___thiscall_log4cplus::Logger::forcedLog_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___char_const___int_const
push edi
push 1
lea esi, [ebp - 0x40]
call fcn.0040dac5
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x18
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x17
call fcn.0040b8a0
or dword [ebp - 4], 0xffffffff
jmp 0x41864b
xor eax, eax
lea edi, [ebp - 0xf4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop esi
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.005060b0
add esp, 0xc
mov dword [ebp - 0x138], esi
xor eax, eax
mov edi, 0x544a1c
push edi
lea esi, [ebp]
mov dword [ebp - 0x10c], 1
mov word [ebp - 0x108], ax
call fcn.0040b812
push dword [ebp - 0x20]
mov eax, esi
push eax
mov dword [ebp - 4], 0x1f
call fcn.0040b547
push edi
mov eax, esi
push eax
call fcn.0040b547
mov eax, esi
push eax
lea esi, [ebp + 0x1c]
call fcn.0040be1c
cmp dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0x20
je 0x4186db
push 0x54199c
mov eax, esi
push eax
call fcn.0040b547
push dword [ebp - 0x1c]
mov eax, esi
push eax
call fcn.0040b547
mov ecx, dword [ebp + 0x20]
xor eax, eax
cmp dword [ebp + 0x34], 8
mov word [ebp + 0x54], ax
jae 0x4186ed
lea ecx, [ebp + 0x20]
lea edx, [ebp + 0x54]
xor edi, edi
movzx eax, word [ecx]
inc ecx
mov word [edx], ax
inc ecx
inc edx
inc edx
cmp ax, di
jne 0x4186f2
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x138]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
lea eax, [ebp + 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
call fcn.0040dbda
cmp byte [eax], 0
jne 0x4187ad
lea eax, [ebp - 0xc8]
push eax
call fcn.0040d9e1
push dword [ebp - 0x20]
lea eax, [ebp - 0xc0]
push ebx
push str.CSystemCommands::RunProgram___CreateProcess_last_error
push eax
mov byte [ebp - 4], 0x21
call fcn.0040c0a0
pop ecx
pop ecx
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push eax
call fcn.00408e51
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040bf31
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 0x22
call fcn.0040ba4e
push 0
push 1
mov esi, edi
call fcn.0040dac5
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0x20
call fcn.0040c22b
jmp 0x4188dd
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 0x23
call fcn.0040b935
mov byte [ebp - 4], 0x24
call fcn.0040dbda
lea ecx, [ebp - 0x40]
call fcn.0040b84b
mov byte [ebp - 4], 0x25
cmp dword [eax + 0x18], 8
jb 0x4187dd
mov esi, dword [eax + 4]
jmp 0x4187e0
lea esi, [eax + 4]
lea eax, [ebp - 0xc0]
push 0x54331c
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push esi
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push 0x543314
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push str.CSystemCommands::RunProgram___CreateProcess_last_error
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push ebx
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push dword [ebp - 0x20]
push eax
call fcn.00408e51
push edi
push 1
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 0x24
call fcn.0040dac5
lea eax, [ebp - 0x18]
push eax
call sub.log4cplusU.dll_public:_static_class_log4cplus::Logger___cdecl_log4cplus::Logger::getRoot_void_
pop ecx
mov esi, 0x2710
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x26
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x418886
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040b831
push 0x56
push str..SystemCommands.cpp
push eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x27
call sub.log4cplusU.dll_public:_void___thiscall_log4cplus::Logger::forcedLog_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___char_const___int_const
push edi
push 1
lea esi, [ebp - 0x40]
call fcn.0040dac5
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x24
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x23
call fcn.0040b8a0
mov dword [ebp - 4], 0x20
jmp 0x4188dd
cmp dword [ebp - 0x1c], 1
sete al
test al, al
je 0x418903
cmp byte [ebp + 0x2064], 0
je 0x41899c
push 0xffffffffffffffff
push dword [ebp - 0xf4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebp + 0x2064], 0
je 0x41899c
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xf4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x41899c
call fcn.0040dbda
cmp byte [eax], 0
jne 0x4189be
lea eax, [ebp - 0xc8]
push eax
call fcn.0040d9e1
mov byte [ebp - 4], 0x2a
push dword [ebp - 0x24]
lea eax, [ebp - 0xc0]
push ebx
push str.CSystemCommands::RunProgram___exit_code
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push eax
call fcn.00408e51
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040bf31
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 0x2b
call fcn.0040ba4e
push 0
push 1
mov esi, edi
call fcn.0040dac5
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0x20
call fcn.0040c22b
mov edi, dword [ebp - 0x24]
push 0
push 1
lea esi, [ebp + 0x1c]
call fcn.0040dac5
push 0
push 1
lea esi, [ebp]
call fcn.0040dac5
mov eax, edi
jmp 0x418b48
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 0x2c
call fcn.0040b935
mov byte [ebp - 4], 0x2d
call fcn.0040dbda
lea ecx, [ebp - 0x40]
call fcn.0040b84b
mov byte [ebp - 4], 0x2e
cmp dword [eax + 0x18], 8
jb 0x4189ee
mov esi, dword [eax + 4]
jmp 0x4189f1
lea esi, [eax + 4]
lea eax, [ebp - 0xc0]
push 0x54331c
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push esi
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push 0x543314
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push str.CSystemCommands::RunProgram___exit_code
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push ebx
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push dword [ebp - 0x24]
push eax
call fcn.00408e51
push 0
push 1
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 0x2d
call fcn.0040dac5
lea eax, [ebp - 0x18]
push eax
call sub.log4cplusU.dll_public:_static_class_log4cplus::Logger___cdecl_log4cplus::Logger::getRoot_void_
pop ecx
mov esi, 0x2710
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x2f
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x418a99
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040b831
push 0x5e
push str..SystemCommands.cpp
push eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x30
call sub.log4cplusU.dll_public:_void___thiscall_log4cplus::Logger::forcedLog_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___char_const___int_const
push 0
push 1
lea esi, [ebp - 0x40]
call fcn.0040dac5
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x2d
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x2c
call fcn.0040b8a0
jmp 0x41899c
call fcn.0040dbda
cmp byte [eax], 0
jne 0x418b6b
lea eax, [ebp - 0xc8]
push eax
call fcn.0040d9e1
and dword [ebp - 4], 0
lea eax, [ebp - 0xc0]
push str.CSystemCommands::RunProgram_szFileName_is_empty.
push eax
call fcn.0040c0a0
pop ecx
pop ecx
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040bf31
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.0040ba4e
push 0
push 1
mov esi, edi
call fcn.0040dac5
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc8]
call fcn.0040c22b
push 2
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2054]
xor ecx, ebp
call fcn.004ffa47
add ebp, 0x2058
leave
ret
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 4], 2
call fcn.0040b935
mov byte [ebp - 4], 3
call fcn.0040dbda
lea ecx, [ebp - 0x40]
call fcn.0040b84b
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x418b9e
mov esi, dword [eax + 4]
jmp 0x418ba1
lea esi, [eax + 4]
lea eax, [ebp - 0xc0]
push 0x54331c
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push esi
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push 0x543314
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push str.CSystemCommands::RunProgram_szFileName_is_empty.
push eax
call fcn.0040c0a0
pop ecx
pop ecx
push edi
push 1
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0040dac5
lea eax, [ebp - 0x18]
push eax
call sub.log4cplusU.dll_public:_static_class_log4cplus::Logger___cdecl_log4cplus::Logger::getRoot_void_
pop ecx
mov esi, 0x2710
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x418c35
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040b831
push 0x2d
push str..SystemCommands.cpp
push eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call sub.log4cplusU.dll_public:_void___thiscall_log4cplus::Logger::forcedLog_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___char_const___int_const
push edi
push 1
lea esi, [ebp - 0x40]
call fcn.0040dac5
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.0040b8a0
jmp 0x418b45