Function at 0x401bd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
call fcn.004012b0
cmp dword [esp + 0x21c], 3
jne 0x401eaf
mov ebp, dword [esp + 0x220]
mov eax, dword [ebp + 4]
movsx ecx, byte [eax]
push ecx
call fcn.00404af9
add esp, 4
test eax, eax
je 0x401c23
mov edx, dword [ebp + 4]
push edx
push str.PID___s_n
call fcn.00404555
mov eax, dword [ebp + 4]
push eax
call fcn.00404aee
add esp, 0xc
jmp 0x401c91
mov ecx, dword [ebp + 4]
push ecx
push str.Filename___s_n
call fcn.00404555
mov esi, dword [ebp + 4]
mov dl, byte [esp + 0x1f]
sub esp, 8
xor eax, eax
mov ebx, esp
mov edi, esi
or ecx, 0xffffffff
mov dword [esp + 0x20], esp
mov byte [ebx], dl
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebx
push edi
mov dword [esp + 0x28], edi
call fcn.00402410
test al, al
je 0x401c89
mov ecx, edi
mov edi, dword [ebx + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
mov ecx, ebx
call fcn.004023f0
call fcn.004011e0
add esp, 0x10
mov edx, dword [ebp + 8]
push 0x3a
push edx
mov dword [esp + 0x18], eax
call fcn.004049f0
add esp, 8
test eax, eax
je 0x401d42
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push str.DllPath_
push 0x41b300
call fcn.004026c0
add esp, 8
push eax
call fcn.004026c0
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00402210
mov edx, dword [esi]
mov bl, 6
xor edi, edi
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], bl
jne 0x401d1e
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401d1e
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x401de7
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
test edx, edx
jne 0x401ddf
jmp 0x401ddd
lea ecx, [esp + 0x118]
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [ebp + 8]
lea eax, [esp + 0x118]
push edx
push eax
lea ecx, [esp + 0x20]
push str._s_s
push ecx
call fcn.00404503
add esp, 0x10
lea edx, [esp + 0x18]
push edx
push str.DllPath_
push 0x41b300
call fcn.004026c0
add esp, 8
push eax
call fcn.004026c0
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00402210
mov eax, dword [esi]
mov bl, 6
xor edi, edi
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
mov cl, byte [ecx + esi + 4]
test bl, cl
jne 0x401dc6
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401dc6
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x401de7
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
test edx, edx
jne 0x401ddf
or al, 4
push 0
push eax
call fcn.0040ea60
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401dff
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov ecx, dword [ebp]
push eax
push 0x41749c
push ecx
push 0x41b300
call fcn.004026c0
add esp, 8
push eax
call fcn.004026c0
add esp, 8
mov ecx, eax
call fcn.00401ee0
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402210
mov edx, dword [esi]
xor edi, edi
mov eax, dword [edx + 4]
add eax, esi
test byte [eax + 4], bl
jne 0x401e53
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x401e53
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x401e74
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
test edx, edx
jne 0x401e6c
or al, 4
push 0
push eax
call fcn.0040ea60
mov edi, dword [esp + 0x10]
push edi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401ed3
lea ecx, [esp + 0x18]
push ecx
push edi
push esi
call fcn.00401660
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push str.Usage:_LPInjecter__uedit32.exe_ver13081901.dll__n
call fcn.00404555
add esp, 4
push str.Usage:_LPInjecter__16888__ver13081901.dll__n
call fcn.00404555
push str.PAUSE
call fcn.0040495a
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret