Function at 0x105e9dc
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x444], 0
push ebx
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x454], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44c], eax
xor eax, eax
and dword [ebp - 0x440], 0
push 9
mov word [ebp - 0x2c], ax
pop ecx
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x458], esi
stosw word es:[edi], ax
mov eax, dword [0x1075004]
mov edi, 0x1075004
cmp eax, edi
je 0x105ea65
test byte [eax + 0x1c], 2
je 0x105ea65
cmp byte [eax + 0x19], 5
jb 0x105ea65
mov ebx, 0x1005484
push ebx
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x105ea6a
mov ebx, 0x1005484
cmp dword [ebp - 0x450], 0
jne 0x105eacd
lea eax, [ebp - 0x43c]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x105eac1
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105eab8
test byte [eax + 0x1c], 2
je 0x105eab8
cmp byte [eax + 0x19], 2
jb 0x105eab8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push ebx
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
xor eax, eax
xor edx, edx
jmp 0x105ed9d
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x450], eax
push 0x5c
push dword [ebp - 0x450]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x105eaf6
cmp word [eax + 2], 0
jne 0x105eaf6
push 1
push 0
push eax
call dword [sym.imp.msvcrt.dll__wcsnset]
add esp, 0xc
test esi, esi
jne 0x105eb04
mov dword [ebp - 0x458], 0x10019cc
cmp dword [ebp - 0x454], 0
jne 0x105eb17
mov dword [ebp - 0x454], 0x1001768
cmp dword [ebp + 8], 0
je 0x105eb73
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10054bc
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.01009acc
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x105eb73
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105eb64
test byte [eax + 0x1c], 2
je 0x105eb64
cmp byte [eax + 0x19], 2
jb 0x105eb64
movzx ecx, si
push ecx
push ebx
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x105eab8
and dword [ebp - 0x448], 0
mov esi, 0x100
jmp 0x105eb86
mov ebx, 0x1005484
cmp dword [ebp - 0x448], 0
jne 0x105ebe2
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x105ec88
mov eax, dword [ebp - 0x45c]
mov edx, dword [ebp - 0x460]
xor ecx, ecx
shld ecx, eax, 0x18
shl eax, 0x18
shr edx, 8
xor ebx, ebx
or eax, edx
or ecx, ebx
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], ecx
push dword [ebp - 0x458]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x440]
push dword [ebp - 0x444]
push eax
push dword [ebp - 0x454]
push dword [ebp - 0x450]
push 0x100549c
push dword [ebp + 0x1c]
push dword [ebp - 0x44c]
call fcn.01009acc
mov ebx, eax
xor eax, eax
add esp, 0x24
cmp ebx, eax
jl 0x105ecc8
push 2
push eax
push 0x80
push 1
push eax
push eax
push 0x40000000
push dword [ebp - 0x44c]
call fcn.0105e538
cmp eax, 0xffffffff
jne 0x105ed41
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x105ec63
cmp eax, 0x50
jne 0x105ecfb
add dword [ebp - 0x444], 1
adc dword [ebp - 0x440], 0
inc dword [ebp - 0x448]
cmp dword [ebp - 0x448], esi
jb 0x105eb81
jmp 0x105ed48
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105eab8
test byte [eax + 0x1c], 2
je 0x105eab8
cmp byte [eax + 0x19], 2
jb 0x105eab8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push ebx
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x105eab8
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105ecf3
test byte [eax + 0x1c], 2
je 0x105ecf3
cmp byte [eax + 0x19], 2
jb 0x105ecf3
movzx ecx, bx
push ecx
push 0x1005484
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
movzx eax, bx
jmp 0x105eb67
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105eab8
test byte [eax + 0x1c], 2
je 0x105eab8
cmp byte [eax + 0x19], 2
jb 0x105eab8
call ebx
push eax
push dword [ebp - 0x44c]
mov eax, dword [0x1075004]
push 0x1005484
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
jmp 0x105eab8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x448], esi
jne 0x105ed91
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105ed8a
test byte [eax + 0x1c], 2
je 0x105ed8a
cmp byte [eax + 0x19], 2
jb 0x105ed8a
push dword [ebp - 0x44c]
push dword [ebp - 0x440]
push dword [ebp - 0x444]
push esi
push 0x1005484
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0105e4bf
push 4
jmp 0x105eb68
mov eax, dword [ebp - 0x444]
mov edx, dword [ebp - 0x440]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 0x18