Function at 0x40af4f
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2058]
mov eax, 0x2058
call fcn.00468ab0
push 0xffffffffffffffff
push 0x47163a
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x489218]
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 0x40b83a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x40afb2
sub eax, edx
sar eax, 1
je 0x40b83a
call fcn.0040a3c3
cmp byte [eax], 0
jne 0x40b067
lea eax, [ebp - 0xc8]
push eax
call fcn.00408287
push dword [ebp - 0x20]
lea esi, [ebp - 0x40]
mov dword [ebp - 4], 9
call fcn.004062ba
push eax
mov ebx, 0x4792c8
push ebx
lea eax, [ebp - 0xc0]
push str.CSystemCommands::RunProgram___filename
push eax
mov byte [ebp - 4], 0xa
call fcn.00406795
pop ecx
pop ecx
push eax
call fcn.00406795
pop ecx
pop ecx
push eax
call fcn.00406a28
pop ecx
pop ecx
push 0
push 1
mov byte [ebp - 4], 9
call fcn.0040866c
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040677b
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 0xb
call fcn.004064f6
push 0
push 1
mov esi, edi
call fcn.0040866c
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc8]
call fcn.00406bd8
jmp 0x40b1bb
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 4], 0xc
call fcn.004063dd
push esi
lea esi, [ebp - 0xe4]
mov byte [ebp - 4], 0xd
call fcn.004062ba
mov edi, eax
mov byte [ebp - 4], 0xe
call fcn.0040a3c3
lea ecx, [ebp - 0x40]
call fcn.004062f3
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x18], 8
jb 0x40b0ac
mov esi, dword [eax + 4]
jmp 0x40b0af
lea esi, [eax + 4]
lea eax, [ebp - 0xc0]
push 0x479278
push eax
call fcn.00406795
pop ecx
pop ecx
push esi
push eax
call fcn.00406795
pop ecx
pop ecx
push 0x479270
push eax
call fcn.00406795
pop ecx
pop ecx
push str.CSystemCommands::RunProgram___filename
push eax
call fcn.00406795
pop ecx
pop ecx
mov ebx, 0x4792c8
push ebx
push eax
call fcn.00406795
pop ecx
pop ecx
push edi
push eax
call fcn.00406a28
pop ecx
pop ecx
xor edi, edi
push edi
push 1
lea esi, [ebp - 0x40]
call fcn.0040866c
push edi
push 1
lea esi, [ebp - 0xe4]
mov byte [ebp - 4], 0xd
call fcn.0040866c
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 0x40b16a
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.004062d9
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.0040866c
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.00406348
or dword [ebp - 4], 0xffffffff
jmp 0x40b1bb
call fcn.0040a3c3
cmp byte [eax], 0
jne 0x40b261
lea eax, [ebp - 0xc8]
push eax
call fcn.00408287
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0x14
test eax, eax
jne 0x40b1e8
mov eax, 0x4791e4
push eax
lea esi, [ebp - 0x40]
call fcn.004062ba
push eax
push ebx
lea eax, [ebp - 0xc0]
push str.CSystemCommands::RunProgram___parameters
push eax
mov byte [ebp - 4], 0x15
call fcn.00406795
pop ecx
pop ecx
push eax
call fcn.00406795
pop ecx
pop ecx
push eax
call fcn.00406a28
pop ecx
pop ecx
push 0
push 1
mov byte [ebp - 4], 0x14
call fcn.0040866c
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040677b
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 0x16
call fcn.004064f6
push 0
push 1
mov esi, edi
call fcn.0040866c
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc8]
call fcn.00406bd8
jmp 0x40b3bc
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 4], 0x17
call fcn.004063dd
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x18
test eax, eax
jne 0x40b284
mov eax, 0x4791e4
push eax
lea esi, [ebp - 0xe4]
call fcn.004062ba
mov edi, eax
mov byte [ebp - 4], 0x19
call fcn.0040a3c3
lea ecx, [ebp - 0x40]
call fcn.004062f3
mov byte [ebp - 4], 0x1a
cmp dword [eax + 0x18], 8
jb 0x40b2b2
mov esi, dword [eax + 4]
jmp 0x40b2b5
lea esi, [eax + 4]
lea eax, [ebp - 0xc0]
push 0x479278
push eax
call fcn.00406795
pop ecx
pop ecx
push esi
push eax
call fcn.00406795
pop ecx
pop ecx
push 0x479270
push eax
call fcn.00406795
pop ecx
pop ecx
push str.CSystemCommands::RunProgram___parameters
push eax
call fcn.00406795
pop ecx
pop ecx
push ebx
push eax
call fcn.00406795
pop ecx
pop ecx
push edi
push eax
call fcn.00406a28
pop ecx
pop ecx
xor edi, edi
push edi
push 1
lea esi, [ebp - 0x40]
call fcn.0040866c
push edi
push 1
lea esi, [ebp - 0xe4]
mov byte [ebp - 4], 0x18
call fcn.0040866c
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 0x40b36b
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.004062d9
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.0040866c
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.00406348
or dword [ebp - 4], 0xffffffff
jmp 0x40b3bc
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.0045c870
add esp, 0xc
mov dword [ebp - 0x138], esi
xor eax, eax
mov edi, 0x478c60
push edi
lea esi, [ebp]
mov dword [ebp - 0x10c], 1
mov word [ebp - 0x108], ax
call fcn.004062ba
push dword [ebp - 0x20]
mov eax, esi
push eax
mov dword [ebp - 4], 0x1f
call fcn.0040626f
push edi
mov eax, esi
push eax
call fcn.0040626f
mov eax, esi
push eax
lea esi, [ebp + 0x1c]
call fcn.004085e7
cmp dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0x20
je 0x40b44c
push 0x479aac
mov eax, esi
push eax
call fcn.0040626f
push dword [ebp - 0x1c]
mov eax, esi
push eax
call fcn.0040626f
mov ecx, dword [ebp + 0x20]
xor eax, eax
cmp dword [ebp + 0x34], 8
mov word [ebp + 0x54], ax
jae 0x40b45e
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 0x40b463
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.0040a3c3
cmp byte [eax], 0
jne 0x40b51e
lea eax, [ebp - 0xc8]
push eax
call fcn.00408287
push dword [ebp - 0x20]
lea eax, [ebp - 0xc0]
push ebx
push 0x479ab0
push eax
mov byte [ebp - 4], 0x21
call fcn.00406795
pop ecx
pop ecx
push eax
call fcn.00406795
pop ecx
pop ecx
push eax
call fcn.00404699
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040677b
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 0x22
call fcn.004064f6
push 0
push 1
mov esi, edi
call fcn.0040866c
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0x20
call fcn.00406bd8
jmp 0x40b64e
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 0x23
call fcn.004063dd
mov byte [ebp - 4], 0x24
call fcn.0040a3c3
lea ecx, [ebp - 0x40]
call fcn.004062f3
mov byte [ebp - 4], 0x25
cmp dword [eax + 0x18], 8
jb 0x40b54e
mov esi, dword [eax + 4]
jmp 0x40b551
lea esi, [eax + 4]
lea eax, [ebp - 0xc0]
push 0x479278
push eax
call fcn.00406795
pop ecx
pop ecx
push esi
push eax
call fcn.00406795
pop ecx
pop ecx
push 0x479270
push eax
call fcn.00406795
pop ecx
pop ecx
push 0x479ab0
push eax
call fcn.00406795
pop ecx
pop ecx
push ebx
push eax
call fcn.00406795
pop ecx
pop ecx
push dword [ebp - 0x20]
push eax
call fcn.00404699
push edi
push 1
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 0x24
call fcn.0040866c
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 0x40b5f7
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.004062d9
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.0040866c
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.00406348
mov dword [ebp - 4], 0x20
jmp 0x40b64e
cmp dword [ebp - 0x1c], 1
sete al
test al, al
je 0x40b667
push 0xffffffffffffffff
push dword [ebp - 0xf4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xf4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40b6f3
call fcn.0040a3c3
cmp byte [eax], 0
jne 0x40b715
lea eax, [ebp - 0xc8]
push eax
call fcn.00408287
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.00406795
pop ecx
pop ecx
push eax
call fcn.00406795
pop ecx
pop ecx
push eax
call fcn.00404699
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040677b
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 0x2b
call fcn.004064f6
push 0
push 1
mov esi, edi
call fcn.0040866c
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0x20
call fcn.00406bd8
mov edi, dword [ebp - 0x24]
push 0
push 1
lea esi, [ebp + 0x1c]
call fcn.0040866c
push 0
push 1
lea esi, [ebp]
call fcn.0040866c
mov eax, edi
jmp 0x40b89f
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 0x2c
call fcn.004063dd
mov byte [ebp - 4], 0x2d
call fcn.0040a3c3
lea ecx, [ebp - 0x40]
call fcn.004062f3
mov byte [ebp - 4], 0x2e
cmp dword [eax + 0x18], 8
jb 0x40b745
mov esi, dword [eax + 4]
jmp 0x40b748
lea esi, [eax + 4]
lea eax, [ebp - 0xc0]
push 0x479278
push eax
call fcn.00406795
pop ecx
pop ecx
push esi
push eax
call fcn.00406795
pop ecx
pop ecx
push 0x479270
push eax
call fcn.00406795
pop ecx
pop ecx
push str.CSystemCommands::RunProgram___exit_code
push eax
call fcn.00406795
pop ecx
pop ecx
push ebx
push eax
call fcn.00406795
pop ecx
pop ecx
push dword [ebp - 0x24]
push eax
call fcn.00404699
push 0
push 1
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 0x2d
call fcn.0040866c
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 0x40b7f0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.004062d9
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.0040866c
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.00406348
jmp 0x40b6f3
call fcn.0040a3c3
cmp byte [eax], 0
jne 0x40b8c2
lea eax, [ebp - 0xc8]
push eax
call fcn.00408287
and dword [ebp - 4], 0
lea eax, [ebp - 0xc0]
push 0x479988
push eax
call fcn.00406795
pop ecx
pop ecx
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040677b
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.004064f6
push 0
push 1
mov esi, edi
call fcn.0040866c
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc8]
call fcn.00406bd8
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.0045509c
add ebp, 0x2058
leave
ret
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 4], 2
call fcn.004063dd
mov byte [ebp - 4], 3
call fcn.0040a3c3
lea ecx, [ebp - 0x40]
call fcn.004062f3
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x40b8f5
mov esi, dword [eax + 4]
jmp 0x40b8f8
lea esi, [eax + 4]
lea eax, [ebp - 0xc0]
push 0x479278
push eax
call fcn.00406795
pop ecx
pop ecx
push esi
push eax
call fcn.00406795
pop ecx
pop ecx
push 0x479270
push eax
call fcn.00406795
pop ecx
pop ecx
push 0x479988
push eax
call fcn.00406795
pop ecx
pop ecx
push edi
push 1
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0040866c
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 0x40b98c
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.004062d9
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.0040866c
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.00406348
jmp 0x40b89c