Function at 0x401340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x610
mov eax, dword [0x419010]
xor eax, esp
mov dword [esp + 0x60c], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x150]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ecx
lea edx, [esp + 0x154]
lea ecx, [esp + 0x284]
call fcn.00401650
add esp, 4
lea eax, [esp + 0x3b0]
push eax
push 0x12c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x100
lea eax, [esp + 0x48]
mov dword [esp + 0x34], 0x11c
push 0
push eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call fcn.00402c80
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [esp + 0x146], ax
mov dword [esp + 0x148], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 6
xor ecx, ecx
mov dword [esp + 0x44], 2
push eax
mov word [esp + 0x154], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x401455
push 0x30
lea eax, [esp + 0x284]
push eax
push str.This_program_requires_Windows_8_or_higher
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x60c]
xor ecx, esp
call fcn.004018f8
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 8]
push eax
push 0x8002
push edi
call dword [sym.imp.USER32.dll_GetClassInfoA]
push str.rdpicon
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], str.RdpLoaderClass
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x4015c0
cmp dword [0x41ae5c], 0
jne 0x4014fa
xorps xmm0, xmm0
mov dword [0x41ae7c], 0
push 0x41ae60
movups xmmword [0x41ae5c], xmm0
movups xmmword [0x41ae6c], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10
call fcn.0040525f
mov esi, eax
add esp, 4
test esi, esi
je 0x4014db
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push str.GSSL.cs
mov dword [0x41ae60], esi
call fcn.00406180
mov dword [esi], eax
add esp, 4
mov dword [0x41ae5c], 1
sub esp, 8
mov ecx, 0x41ae60
call fcn.00401740
push 0x10
call fcn.0040525f
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40151d
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov eax, dword [0x41ae78]
xor ecx, ecx
inc eax
mov edx, 4
mov dword [0x41ae78], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [0x41ae7c]
call fcn.00403e8d
mov ecx, dword [0x41ae78]
sub esp, 8
mov dword [0x41ae7c], eax
mov dword [eax + ecx*4 - 4], esi
mov ecx, esi
call fcn.004015e0
add esp, 0x10
mov dword [esi + 0xc], 0x419a30
lea ecx, [esi + 0xc]
call fcn.00401020
push 0x41ae60
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str._sRdpZapper__.reg
lea eax, [esp + 0x3b4]
push eax
push 0xf2
push str.D:MyProjectsProPilotTestLoaderMain.c
push str._sRdpZapper__.reg
lea eax, [esp + 0x4f4]
push 0x12c
push eax
call fcn.004017b0
add esp, 0x1c
push 0
push 0x401250
push 0
push str.RdpZapperDialog
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ecx, dword [esp + 0x614]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.004018f8
mov esp, ebp
pop ebp
ret 0x10