Function at 0x405230
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, 0x416a46
call fcn.0040ef50
sub esp, 0x144
push ebx
push esi
push edi
mov ebx, ecx
mov esi, 0x420bb0
xor edi, edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], edi
call fcn.00401595
push str.CMainFrame::StopStmService___n
mov dword [ebp - 4], edi
call fcn.004024eb
pop ecx
push 0x10
call fcn.0040efd0
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, edi
mov byte [ebp - 4], 1
je 0x4052bf
add ebx, 0x84
lea eax, [ebp - 0x24]
push ebx
push str.SoftwareEPSONSTM3Driver_
push eax
call fcn.004017d5
add esp, 0xc
mov dword [ebp - 0x10], 1
push 0x20019
push edi
push edi
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00401e04
mov ecx, dword [ebp - 0x1c]
push eax
push 0x80000002
call fcn.0040dc20
mov ebx, eax
jmp 0x4052c1
xor ebx, ebx
test byte [ebp - 0x10], 1
mov dword [ebp - 4], 1
je 0x4052da
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x24]
call fcn.00401563
and byte [ebp - 4], 0
cmp dword [ebx + 8], edi
je 0x405619
push esi
lea ecx, [ebp - 0x18]
call fcn.00401595
lea eax, [ebp - 0x18]
push 0x100
push eax
lea eax, [ebp - 0x1c]
push str.STMSRV_NAME
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0040df98
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00401618
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00401563
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401563
cmp ebx, edi
je 0x40533e
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00401e9b
pop ecx
test al, al
pop ecx
je 0x405636
push 0x20019
push edi
push edi
push str.SoftwareEPSONSTM3Driver
push 0x80000002
lea ecx, [ebp - 0x4c]
call fcn.0040dc20
cmp dword [ebp - 0x44], edi
mov byte [ebp - 4], 5
je 0x4055fa
lea ecx, [ebp - 0x28]
call fcn.004013e3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004013e3
mov byte [ebp - 4], 7
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x30], edi
push edi
lea eax, [ebp - 0x34]
push dword [ebp - 0x30]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0040dce6
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00401618
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.00401563
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00401e2f
pop ecx
test al, al
pop ecx
jne 0x4054f3
mov eax, dword [ebp - 0x20]
add eax, 0x84
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401e73
pop ecx
test al, al
pop ecx
je 0x4054e7
push 0x10
call fcn.0040efd0
pop ecx
mov dword [ebp - 0x38], eax
cmp eax, edi
mov byte [ebp - 4], 9
je 0x40543f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x3c]
push str.SoftwareEPSONSTM3Driver_
push eax
call fcn.004017d5
or dword [ebp - 0x10], 2
add esp, 0xc
push 0x20019
push edi
push edi
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00401e04
mov ecx, dword [ebp - 0x38]
push eax
push 0x80000002
call fcn.0040dc20
mov ebx, eax
jmp 0x405441
xor ebx, ebx
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 9
je 0x40545a
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x3c]
call fcn.00401563
cmp dword [ebx + 8], edi
mov byte [ebp - 4], 7
je 0x4054ca
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401595
lea eax, [ebp - 0x1c]
push 0x100
push eax
lea eax, [ebp - 0x14]
push str.STMSRV_NAME
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.0040df98
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.00401618
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00401563
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00401563
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401e07
pop ecx
test al, al
pop ecx
je 0x4054db
mov dword [ebp - 0x24], 1
jmp 0x4054db
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x70], 3
mov dword [eax + 0x74], 0x3c
cmp ebx, edi
je 0x4054e7
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
inc dword [ebp - 0x30]
cmp dword [ebp - 0x24], edi
je 0x405396
cmp dword [ebp - 0x24], edi
jne 0x4055e0
lea eax, [ebp - 0x150]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebp - 0x20]
lea ebx, [eax + 0xc8]
lea eax, [ebp - 0x150]
push eax
mov ecx, ebx
call fcn.00401680
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push 0x41c058
push eax
call fcn.004017d5
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xd
call fcn.00401a26
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00401563
mov esi, 0x41c7e4
lea eax, [ebp - 0x14]
push esi
push ebx
push eax
call fcn.0040176a
add esp, 0xc
push dword [eax]
mov byte [ebp - 4], 0xe
push str.CMainFrame::StopStmService___Execute_stm_service_____s_n
call fcn.004024eb
pop ecx
mov byte [ebp - 4], 7
pop ecx
lea ecx, [ebp - 0x14]
call fcn.00401563
push esi
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0040176a
add esp, 0xc
push edi
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.00401e04
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
lea ecx, [ebp - 0x14]
sbb ebx, ebx
mov byte [ebp - 4], 7
neg ebx
call fcn.00401563
test bl, bl
je 0x4055c8
push str.CMainFrame::StopStmService___Execute_stm_service____error_n
call fcn.004024eb
pop ecx
jmp 0x4055e0
push str.CMainFrame::StopStmService___Execute_stm_service____complete_n
call fcn.004024eb
mov eax, dword [ebp - 0x20]
pop ecx
mov dword [eax + 0xb8], 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00401563
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00401563
jmp 0x40560b
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x70], 3
mov dword [eax + 0x74], 0x3d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.0040dcd0
jmp 0x405636
cmp ebx, edi
je 0x405625
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x70], 3
mov dword [eax + 0x74], 0x3e
push str.CMainFrame::StopStmService___exit_n
call fcn.004024eb
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00401563
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret