Function at 0x40d910
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x110]
cmp eax, 0xd
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x124]
ja case.default.0x40d948
jmp dword [eax*4 + 0x40dd74]
call fcn.0040f890
test eax, eax
je 0x40d987
lea eax, [esp + 0xc]
push eax
push 0x19
push 0
call fcn.0040ef60
add esp, 0xc
test eax, eax
jne 0x40d99c
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00412c09
add esp, 0x108
ret
lea ecx, [esp + 0xc]
push ecx
push 0x10
push 0
call fcn.0040ef60
add esp, 0xc
test eax, eax
je case.default.0x40d948
lea edx, [esp + 0xc]
push edx
push 0x104
push esi
call fcn.00413690
add esp, 0xc
cmp byte [esp + 0x128], 0
je 0x40d9e4
lea eax, [esp + 0xc]
push eax
call fcn.0040e9f0
push str.eptemp.___
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.004136f5
lea edx, [esp + 0x1c]
push edx
call fcn.0040e9f0
add esp, 0x14
lea eax, [esp + 0xc]
push eax
call fcn.0040e9f0
push edi
lea ecx, [esp + 0x14]
push ecx
jmp 0x40dd3d
call fcn.0040f890
test eax, eax
je 0x40da1c
lea edx, [esp + 0xc]
push edx
push 0x23
push 0
call fcn.0040ef60
add esp, 0xc
test eax, eax
jne 0x40da35
jmp case.default.0x40d948
lea eax, [esp + 0xc]
push eax
push 0x1a
push 0
call fcn.0040ef60
add esp, 0xc
test eax, eax
je case.default.0x40d948
lea ecx, [esp + 0xc]
push ecx
push 0x104
push esi
call fcn.00413690
add esp, 0xc
cmp byte [esp + 0x128], 0
je 0x40da7d
lea edx, [esp + 0xc]
push edx
call fcn.0040e9f0
push str.eptemp.___
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.004136f5
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040e9f0
add esp, 0x14
lea edx, [esp + 0xc]
push edx
call fcn.0040e9f0
push edi
lea eax, [esp + 0x14]
push eax
jmp 0x40dd3d
lea ecx, [esp + 0xc]
push ecx
push 0x1a
jmp 0x40d98e
lea edx, [esp + 0xc]
push edx
push 0x28
push 0
call fcn.0040ef60
add esp, 0xc
test eax, eax
je case.default.0x40d948
lea eax, [esp + 0xc]
push eax
push 0x104
push esi
call fcn.00413690
add esp, 0xc
cmp byte [esp + 0x128], 0
je 0x40dd2d
lea ecx, [esp + 0xc]
push ecx
call fcn.0040e9f0
push str.eptemp.___
lea edx, [esp + 0x14]
push 0x104
push edx
call fcn.004136f5
lea eax, [esp + 0x1c]
push eax
call fcn.0040e9f0
add esp, 0x14
jmp 0x40dd2d
lea eax, [esp + 0xc]
push eax
push 0x23
push 0
call fcn.0040ef60
add esp, 0xc
test eax, eax
je case.default.0x40d948
lea ecx, [esp + 0xc]
push ecx
call fcn.0040f120
lea edx, [esp + 0x10]
push edx
call fcn.0040ea30
lea eax, [esp + 0x14]
push eax
push 0x104
push esi
call fcn.00413690
add esp, 0x14
jmp 0x40daca
lea eax, [esp + 0xc]
push eax
push 0x26
jmp 0x40da23
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je case.default.0x40d948
lea edx, [esp + 0xc]
push edx
push 0x104
push esi
call fcn.00413690
add esp, 0xc
cmp byte [esp + 0x128], 0
je 0x40da7d
lea eax, [esp + 0xc]
push eax
call fcn.0040e9f0
push str.eptemp.___
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.004136f5
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call fcn.0040e9f0
push edi
lea eax, [esp + 0x14]
push eax
jmp 0x40dd3d
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40db66
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je case.default.0x40d948
lea edx, [esp + 0xc]
push edx
push 0x104
push esi
call fcn.00413690
lea eax, [esp + 0x18]
push eax
call fcn.0040e9f0
push str.eptemp.___
lea ecx, [esp + 0x20]
push 0x104
push ecx
call fcn.004136f5
lea edx, [esp + 0x28]
push edx
call fcn.0040e9f0
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00402530
add esp, 0x28
jmp 0x40dd45
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je case.default.0x40d948
mov byte [esp + 0xf], 0
jmp 0x40db6e
push 0x104
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je case.default.0x40d948
lea edx, [esp + 0xc]
push edx
call fcn.0040e950
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
call fcn.0040ea30
lea ecx, [esp + 0x14]
push ecx
push 0x104
push esi
call fcn.00413690
add esp, 0x14
jmp 0x40dd02
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xc]
push ecx
call fcn.0040ea30
lea edx, [esp + 0x10]
push edx
push 0x104
push esi
call fcn.00413690
add esp, 0x10
jmp 0x40dd45
lea eax, [esp + 0xc]
push eax
push 0x10
jmp 0x40dcdd
lea eax, [esp + 0xc]
push eax
push 5
push 0
call fcn.0040ef60
add esp, 0xc
test eax, eax
je case.default.0x40d948
lea ecx, [esp + 0xc]
push ecx
push 0x104
push esi
call fcn.00413690
add esp, 0xc
cmp byte [esp + 0x128], 0
je 0x40dd2d
lea edx, [esp + 0xc]
push edx
call fcn.0040e9f0
push str.eptemp.___
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.004136f5
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
call fcn.0040e9f0
push edi
lea edx, [esp + 0x14]
push edx
call fcn.00402530
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x104
push ebx
call fcn.00413690
mov ecx, dword [esp + 0x11c]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00412c09
add esp, 0x108
ret