Function at 0x1004b70
Capabilities:
Get common file path
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3a8
mov eax, dword [0x100c034]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x104
call fcn.01005e3b
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1004bf2
push 0
push 0x549
push 0x1001608
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1001388
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edx, edx
jne 0x1004bb5
jmp 0x1004f67
push 0x104
call fcn.01005e3b
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1004c45
push 0
push 0x54f
push 0x1001608
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1001388
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edx, edx
jne 0x1004c08
jmp 0x1004f67
push 0x100cba0
call fcn.010030f0
push 0x1001b78
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x100cba0], 0
jne 0x1004dcb
push 0x1001b68
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.01003560
call fcn.01003e90
push 0x1001b58
call fcn.01003710
push 0x1001b34
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1004cac
push 0x1001b10
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1004d09
mov eax, dword [0x10011b8]
push eax
call fcn.010034c0
cmp eax, 0xffffffff
je 0x1004d09
push 0
mov ecx, dword [0x10011b8]
push ecx
push 0x1001af4
lea edx, [ebp - 0x1a0]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1001388
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ecx, ecx
jne 0x1004cc2
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004cb2
cmp dword [ebp - 0x10], 0
jne 0x1004d51
push 0
push 0
push 0x1001adc
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1001388
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ecx, ecx
jne 0x1004d0f
push 0x1001acc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1004dcb
push 0
push 0
push 0x1001abc
lea edx, [ebp - 0x2a8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1001388
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ecx, ecx
jne 0x1004d51
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 0x228]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x224], eax
push 0x1001aac
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1001a9c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.010036c0
push 0x1001b58
call fcn.01003710
call fcn.01003e90
cmp dword [0x100cba0], 0
jne 0x1004dfe
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.01004fb0
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.010036c0
push 0x1001b58
call fcn.01003710
call fcn.01003e90
push 0x1001a8c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.01004520
push 0x1001a7c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.01003b40
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1004ea1
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x64
jne 0x1004e9f
push 0
push 0x5a0
push 0x1001a5c
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1001388
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x328]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jne 0x1004e65
jmp 0x1004ea1
jmp 0x1004e3d
push 0x1001a4c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x104
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x18]
mov al, byte [edx]
mov byte [ebp - 0x11], al
cmp dword [ebp - 8], 0
je 0x1004f0a
push 0
push 0x5ac
push 0x1001a30
lea ecx, [ebp - 0x3a8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1001388
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x3a8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jne 0x1004ec9
mov cl, byte [ebp - 0x11]
push ecx
call fcn.01003ce0
cmp dword [0x100cba0], 0
jne 0x1004f15
jmp 0x1004f67
call fcn.01003090
test eax, eax
jne 0x1004f3d
mov edx, dword [0x10011b4]
push edx
movsx eax, byte [ebp - 0x11]
push eax
push 0x1001a18
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.01005d8b
add esp, 0x10
jmp 0x1004f5a
mov edx, dword [0x10011b4]
push edx
movsx eax, byte [ebp - 0x11]
push eax
push 0x10019fc
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.01005d8b
add esp, 0x10
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.01003830
cmp dword [ebp - 0x18], 0
je 0x1004f80
mov eax, dword [ebp - 0x18]
push eax
call fcn.01005d15
add esp, 4
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0xc], 0
je 0x1004f99
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.01005d15
add esp, 4
mov dword [ebp - 0xc], 0
xor eax, eax
mov ecx, dword [ebp - 0x1c]
call fcn.01005938
mov esp, ebp
pop ebp
ret