Function at 0x401fee
Capabilities:
Get common file path

Disassembly:
mov eax, 0x40aa98
call fcn.0040a520
sub esp, 0x41c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x24c]
call fcn.00401000
xor ebx, ebx
lea ecx, [esi + 0x258]
mov dword [ebp - 4], ebx
call fcn.00401000
lea ecx, [esi + 0x264]
mov byte [ebp - 4], 1
call fcn.00401000
lea ecx, [esi + 0x270]
mov byte [ebp - 4], 2
call fcn.00401000
lea ecx, [esi + 0x2e8]
mov byte [ebp - 4], 3
call fcn.00401000
lea ecx, [esi + 0x2f4]
mov byte [ebp - 4], 4
call fcn.00401000
lea ecx, [esi + 0x300]
mov byte [ebp - 4], 5
call fcn.00401000
lea ecx, [esi + 0x30c]
mov byte [ebp - 4], 6
call fcn.00401000
lea ecx, [esi + 0x31c]
mov byte [ebp - 4], 7
call fcn.00401000
lea ecx, [esi + 0x32c]
mov byte [ebp - 4], 8
call fcn.00401000
mov al, byte [ebp - 0xd]
lea edi, [esi + 0x33c]
mov byte [ebp - 4], 9
mov byte [edi], al
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov cl, byte [ebp - 0xd]
lea eax, [esi + 0x34c]
mov byte [ebp - 4], 0xa
mov byte [eax], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0x35c]
push 0x3c
push ebx
push eax
mov byte [ebp - 4], 0xb
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [esi + 0x39c]
mov dword [esi + 0x398], ebx
call fcn.00401000
lea ecx, [esi + 0x3a8]
mov byte [ebp - 4], 0xc
call fcn.00401000
lea ecx, [esi + 0x3b4]
mov byte [ebp - 4], 0xd
call fcn.00402303
mov byte [ebp - 4], 0xe
push 0x104
lea eax, [esi + 8]
push ebx
push eax
mov dword [esi], 0x40c268
call sub.MSVCRT.dll_memset
lea eax, [esi + 1]
push 0xeb8
mov dword [esi + 0x218], eax
inc eax
mov dword [esi + 0x21c], eax
inc eax
mov dword [esi + 0x220], eax
inc eax
mov dword [esi + 0x210], esi
mov dword [esi + 0x224], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov byte [ebp - 4], 0xf
je 0x40216d
push esi
mov ecx, eax
call fcn.00406659
jmp 0x40216f
xor eax, eax
mov byte [ebp - 4], 0xe
mov dword [esi + 0x2d8], ebx
mov dword [esi + 0x2e0], eax
mov dword [esi + 0x404], 1
mov dword [esi + 0x230], ebx
mov byte [esi + 0x246], bl
mov dword [esi + 0x248], ebx
mov dword [esi + 0x2dc], ebx
mov byte [esi + 0x244], bl
mov byte [esi + 0x243], bl
mov byte [esi + 0x245], bl
mov byte [esi + 0x242], bl
mov byte [esi + 0x247], bl
mov byte [esi + 0x241], bl
mov byte [esi + 0x240], bl
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x234], ebx
mov dword [esi + 0x238], ebx
mov dword [esi + 0x23c], ebx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, edi
call fcn.004056f3
mov eax, dword [esi + 0x354]
mov edx, dword [esi + 0x350]
lea ecx, [esi + 0x34c]
push eax
push edx
call fcn.004056f3
push 0x4e
lea eax, [esi + 0x3b4]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
mov ecx, esi
call fcn.004023d0
push str.
lea ecx, [esi + 0x2f4]
call fcn.00401109
lea edi, [esi + 0x2e8]
lea ecx, [esi + 0x39c]
push edi
call fcn.004010c2
push edi
lea ecx, [esi + 0x264]
mov dword [esi + 0x228], ebx
mov byte [esi + 0x2e4], bl
call fcn.004010c2
lea eax, [esi + 0x10c]
mov edi, 0x104
push eax
push edi
mov byte [esi + 0x408], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
lea eax, [ebp - 0x11c]
push edi
push eax
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x20
mov byte [esi + 0x20f], bl
mov byte [esi + 0x27c], bl
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret