Function at 0x40c7e0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1b18
call fcn.00415280
mov eax, dword [0x42d278]
xor eax, esp
mov dword [esp + 0x1b14], eax
mov eax, dword [esp + 0x1b1c]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [eax], ebp
xor eax, eax
push 0x208
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1d4]
push ebp
push eax
xor ebx, ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.00414e60
add esp, 0xc
push 0x208
lea ecx, [esp + 0x56c]
push ebp
push ecx
call fcn.00414e60
add esp, 0xc
push 0x190
lea edx, [esp + 0x3dc]
push ebp
push edx
call fcn.00414e60
add esp, 0xc
push 0xfa0
lea eax, [esp + 0xb84]
push ebp
push eax
call fcn.00414e60
add esp, 0xc
push 0x208
lea ecx, [esp + 0x97c]
push ebp
push ecx
call fcn.00414e60
add esp, 0xc
push 0x208
lea edx, [esp + 0x774]
push ebp
push edx
call fcn.00414e60
add esp, 0xc
push 0x80
lea eax, [esp + 0x54]
push ebp
push eax
call fcn.00414e60
lea ecx, [esp + 0x38]
add esp, 0xc
push ecx
call fcn.00405d50
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x18], edi
jne 0x40c9e2
cmp dword [0x436dc8], ebp
je 0x40c948
push 0x40
push str.FDICreate
push 0x4352f0
mov dword [0x4352e8], 0xffffef2b
call fcn.0040ead2
mov edx, dword [esp + 0x38]
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov word [0x435370], bp
mov dword [0x4352ec], edx
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], bp
mov dword [0x435780], 0x121c
jmp 0x40cd2d
push 0x104
lea eax, [esp + 0x97c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x770]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [0x4352d8]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0xc8
lea edx, [esp + 0x3dc]
push edx
push 0x31
push eax
call esi
lea ecx, [esp + 0x770]
push ecx
lea edx, [esp + 0x97c]
push edx
lea eax, [esp + 0x3e0]
push eax
lea ecx, [esp + 0xb8c]
push ecx
call fcn.0040f88a
mov eax, dword [0x4352d8]
add esp, 0x10
push 0x40
lea edx, [esp + 0x54]
push edx
push 0x442
push eax
call esi
push 0x30
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0xb88]
push edx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40cd2d
push ebp
push 0x8020
push 0x436bc0
call fcn.0041016c
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x40ca47
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 0xffffef2a
mov word [0x435370], bp
mov dword [0x4352ec], ebp
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], bp
mov dword [0x435780], 0x1239
jmp 0x40cd2d
mov eax, dword [0x434eac]
cmp eax, ebp
je 0x40ca61
lea ecx, [esp + 0x38]
push ecx
push esi
push edi
call eax
add esp, 0xc
cmp eax, 1
je 0x40cab5
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 0xffffef29
mov word [0x435370], bp
mov dword [0x4352ec], ebp
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0xc
push esi
mov word [0x43577e], bp
mov dword [0x435780], 0x1241
call fcn.00413960
add esp, 4
jmp 0x40cd2d
push esi
call fcn.00413960
add esp, 4
xor eax, eax
movzx ecx, word [eax + 0x436bc0]
mov word [esp + eax + 0x1d0], cx
add eax, 2
cmp cx, bp
jne 0x40cac0
lea edx, [esp + 0x1d0]
push 0x5c
push edx
call fcn.00410f54
add esp, 8
cmp eax, ebp
jne 0x40cb38
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov dword [0x4352e8], 0xffffef2c
mov word [0x435370], bp
mov dword [0x4352ec], ebp
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], bp
mov dword [0x435780], 0x124e
jmp 0x40cd2d
add eax, 2
lea esi, [esp + 0x568]
mov ecx, eax
sub esi, eax
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
cmp dx, bp
jne 0x40cb46
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov word [eax], bp
mov ecx, dword [0x4352d8]
push 0x40
lea eax, [esp + 0xd4]
push eax
push 3
push ecx
call esi
mov eax, dword [0x4352d8]
push 0x40
lea edx, [esp + 0x154]
push edx
push 2
push eax
call esi
cmp dword [0x4357c0], ebp
jne 0x40cbbe
call fcn.00403cb0
push eax
push 0x64
lea ecx, [esp + 0xd8]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea edi, [esp + 0x15c]
mov ebx, eax
call fcn.00404210
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [edx], eax
jmp 0x40cbc4
mov eax, dword [esp + 0x14]
mov dword [eax], ebp
lea esi, [esp + 0x24]
lea eax, [esp + 0x568]
call fcn.00405e60
mov ebx, eax
lea esi, [esp + 0x1c]
lea eax, [esp + 0x1d0]
call fcn.00405e60
mov edx, dword [esp + 0x24]
mov edi, eax
mov ecx, ebx
lea eax, [esp + 0x568]
mov dword [esp + 0x28], edi
call fcn.0040e280
mov edx, dword [esp + 0x1c]
mov ecx, edi
lea eax, [esp + 0x1d0]
call fcn.0040e280
mov eax, dword [0x434eb4]
cmp eax, ebp
je 0x40cc3a
mov esi, dword [esp + 0x14]
push esi
push 0x40c700
push 0x40b630
push ebp
push edi
mov edi, dword [esp + 0x2c]
push ebx
push edi
call eax
add esp, 0x1c
cmp eax, 1
je 0x40cca9
cmp dword [0x4352e8], ebp
jne 0x40cd2d
push 0x40
push str.FDICopy
push 0x4352f0
mov dword [0x4352e8], 0xffffef2b
call fcn.0040ead2
mov ecx, dword [esp + 0x38]
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov word [0x435370], bp
mov dword [0x4352ec], ecx
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], bp
mov dword [0x435780], 0x1280
jmp 0x40cd2d
mov esi, dword [esi]
mov eax, 0x64
call fcn.004042d0
mov ecx, edi
call fcn.00405e30
cmp eax, 1
je 0x40cd21
push 0x40
push str.FDIDestroy
push 0x4352f0
mov dword [0x4352e8], 0xffffef2b
call fcn.0040ead2
mov edx, dword [esp + 0x38]
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x435578
mov word [0x435370], bp
mov dword [0x4352ec], edx
mov word [0x435576], bp
call fcn.0040ead2
add esp, 0xc
mov word [0x43577e], bp
mov dword [0x435780], 0x128e
jmp 0x40cd29
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp eax, ebp
je 0x40cd3e
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp ebx, ebp
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x40cd55
push ebx
push ebp
call edi
push eax
call esi
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x40cd64
push eax
push ebp
call edi
push eax
call esi
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x40cd8d
mov eax, dword [0x434eb0]
cmp eax, ebp
je 0x40cd8d
push ecx
call eax
add esp, 4
cmp eax, 1
jne 0x40cd8d
mov ecx, dword [0x436dc8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x436bc0
call fcn.00403440
mov ecx, dword [esp + 0x1b24]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040eac3
add esp, 0x1b18
ret