Function at 0x40e1b0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1b18
call fcn.00416c80
mov eax, dword [0x42f278]
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.00416890
add esp, 0xc
push 0x208
lea ecx, [esp + 0x56c]
push ebp
push ecx
call fcn.00416890
add esp, 0xc
push 0x190
lea edx, [esp + 0x3dc]
push ebp
push edx
call fcn.00416890
add esp, 0xc
push 0xfa0
lea eax, [esp + 0xb84]
push ebp
push eax
call fcn.00416890
add esp, 0xc
push 0x208
lea ecx, [esp + 0x97c]
push ebp
push ecx
call fcn.00416890
add esp, 0xc
push 0x208
lea edx, [esp + 0x774]
push ebp
push edx
call fcn.00416890
add esp, 0xc
push 0x80
lea eax, [esp + 0x54]
push ebp
push eax
call fcn.00416890
lea ecx, [esp + 0x38]
add esp, 0xc
push ecx
call fcn.00406e40
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x18], edi
jne 0x40e3b2
cmp dword [0x438dcc], ebp
je 0x40e318
push 0x40
push str.FDICreate
push 0x4372f0
mov dword [0x4372ec], 0xffffef2b
call fcn.00410502
mov edx, dword [esp + 0x38]
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437580
mov word [0x437370], bp
mov dword [0x437370], edx
mov word [0x43757e], bp
call fcn.00410502
add esp, 0xc
mov word [0x437786], bp
mov dword [0x437374], 0x1332
jmp 0x40e6fd
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 [0x4372d8]
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.004112ba
mov eax, dword [0x4372d8]
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 0x40e6fd
push ebp
push 0x8020
push 0x438bc0
call fcn.00411b01
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x40e417
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437580
mov dword [0x4372ec], 0xffffef2a
mov word [0x437370], bp
mov dword [0x437370], ebp
mov word [0x43757e], bp
call fcn.00410502
add esp, 0xc
mov word [0x437786], bp
mov dword [0x437374], 0x134f
jmp 0x40e6fd
mov eax, dword [0x436eac]
cmp eax, ebp
je 0x40e431
lea ecx, [esp + 0x38]
push ecx
push esi
push edi
call eax
add esp, 0xc
cmp eax, 1
je 0x40e485
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437580
mov dword [0x4372ec], 0xffffef29
mov word [0x437370], bp
mov dword [0x437370], ebp
mov word [0x43757e], bp
call fcn.00410502
add esp, 0xc
push esi
mov word [0x437786], bp
mov dword [0x437374], 0x1357
call fcn.004138a0
add esp, 4
jmp 0x40e6fd
push esi
call fcn.004138a0
add esp, 4
xor eax, eax
movzx ecx, word [eax + 0x438bc0]
mov word [esp + eax + 0x1d0], cx
add eax, 2
cmp cx, bp
jne 0x40e490
lea edx, [esp + 0x1d0]
push 0x5c
push edx
call fcn.00412984
add esp, 8
cmp eax, ebp
jne 0x40e508
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437580
mov dword [0x4372ec], 0xffffef2c
mov word [0x437370], bp
mov dword [0x437370], ebp
mov word [0x43757e], bp
call fcn.00410502
add esp, 0xc
mov word [0x437786], bp
mov dword [0x437374], 0x1364
jmp 0x40e6fd
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 0x40e516
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov word [eax], bp
mov ecx, dword [0x4372d8]
push 0x40
lea eax, [esp + 0xd4]
push eax
push 3
push ecx
call esi
mov eax, dword [0x4372d8]
push 0x40
lea edx, [esp + 0x154]
push edx
push 2
push eax
call esi
cmp dword [0x4377c8], ebp
jne 0x40e58e
call fcn.00404a30
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.00404f90
mov edx, dword [esp + 0x20]
add esp, 0xc
mov dword [edx], eax
jmp 0x40e594
mov eax, dword [esp + 0x14]
mov dword [eax], ebp
lea esi, [esp + 0x24]
lea eax, [esp + 0x568]
call fcn.00406f50
mov ebx, eax
lea esi, [esp + 0x1c]
lea eax, [esp + 0x1d0]
call fcn.00406f50
mov edx, dword [esp + 0x24]
mov edi, eax
mov ecx, ebx
lea eax, [esp + 0x568]
mov dword [esp + 0x28], edi
call fcn.0040fcb0
mov edx, dword [esp + 0x1c]
mov ecx, edi
lea eax, [esp + 0x1d0]
call fcn.0040fcb0
mov eax, dword [0x436eb4]
cmp eax, ebp
je 0x40e60a
mov esi, dword [esp + 0x14]
push esi
push 0x40e0d0
push 0x40d000
push ebp
push edi
mov edi, dword [esp + 0x2c]
push ebx
push edi
call eax
add esp, 0x1c
cmp eax, 1
je 0x40e679
cmp dword [0x4372ec], ebp
jne 0x40e6fd
push 0x40
push str.FDICopy
push 0x4372f0
mov dword [0x4372ec], 0xffffef2b
call fcn.00410502
mov ecx, dword [esp + 0x38]
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437580
mov word [0x437370], bp
mov dword [0x437370], ecx
mov word [0x43757e], bp
call fcn.00410502
add esp, 0xc
mov word [0x437786], bp
mov dword [0x437374], 0x1396
jmp 0x40e6fd
mov esi, dword [esi]
mov eax, 0x64
call fcn.00405050
mov ecx, edi
call fcn.00406f20
cmp eax, 1
je 0x40e6f1
push 0x40
push str.FDIDestroy
push 0x4372f0
mov dword [0x4372ec], 0xffffef2b
call fcn.00410502
mov edx, dword [esp + 0x38]
add esp, 0xc
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x437580
mov word [0x437370], bp
mov dword [0x437370], edx
mov word [0x43757e], bp
call fcn.00410502
add esp, 0xc
mov word [0x437786], bp
mov dword [0x437374], 0x13a4
jmp 0x40e6f9
mov dword [esp + 0x20], 1
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp eax, ebp
je 0x40e70e
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 0x40e725
push ebx
push ebp
call edi
push eax
call esi
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x40e734
push eax
push ebp
call edi
push eax
call esi
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x40e75d
mov eax, dword [0x436eb0]
cmp eax, ebp
je 0x40e75d
push ecx
call eax
add esp, 4
cmp eax, 1
jne 0x40e75d
mov ecx, dword [0x438dcc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x438bc0
call fcn.004041c0
mov ecx, dword [esp + 0x1b24]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004104f3
add esp, 0x1b18
ret