Function at 0x105e61c
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 0x105e6a5
test byte [eax + 0x1c], 2
je 0x105e6a5
cmp byte [eax + 0x19], 5
jb 0x105e6a5
mov ebx, 0x1005484
push ebx
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x105e6aa
mov ebx, 0x1005484
cmp dword [ebp - 0x450], 0
jne 0x105e70d
lea eax, [ebp - 0x43c]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x105e701
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105e6f8
test byte [eax + 0x1c], 2
je 0x105e6f8
cmp byte [eax + 0x19], 2
jb 0x105e6f8
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.0101463a
xor eax, eax
xor edx, edx
jmp 0x105e9dd
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 0x105e736
cmp word [eax + 2], 0
jne 0x105e736
push 1
push 0
push eax
call dword [sym.imp.msvcrt.dll__wcsnset]
add esp, 0xc
test esi, esi
jne 0x105e744
mov dword [ebp - 0x458], 0x10019cc
cmp dword [ebp - 0x454], 0
jne 0x105e757
mov dword [ebp - 0x454], 0x1001768
cmp dword [ebp + 8], 0
je 0x105e7b3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10054bc
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.01009a76
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x105e7b3
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105e7a4
test byte [eax + 0x1c], 2
je 0x105e7a4
cmp byte [eax + 0x19], 2
jb 0x105e7a4
movzx ecx, si
push ecx
push ebx
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x105e6f8
and dword [ebp - 0x448], 0
mov esi, 0x100
jmp 0x105e7c6
mov ebx, 0x1005484
cmp dword [ebp - 0x448], 0
jne 0x105e822
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 0x105e8c8
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.01009a76
mov ebx, eax
xor eax, eax
add esp, 0x24
cmp ebx, eax
jl 0x105e908
push 2
push eax
push 0x80
push 1
push eax
push eax
push 0x40000000
push dword [ebp - 0x44c]
call fcn.0105e178
cmp eax, 0xffffffff
jne 0x105e981
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x105e8a3
cmp eax, 0x50
jne 0x105e93b
add dword [ebp - 0x444], 1
adc dword [ebp - 0x440], 0
inc dword [ebp - 0x448]
cmp dword [ebp - 0x448], esi
jb 0x105e7c1
jmp 0x105e988
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105e6f8
test byte [eax + 0x1c], 2
je 0x105e6f8
cmp byte [eax + 0x19], 2
jb 0x105e6f8
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.0101463a
jmp 0x105e6f8
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105e933
test byte [eax + 0x1c], 2
je 0x105e933
cmp byte [eax + 0x19], 2
jb 0x105e933
movzx ecx, bx
push ecx
push 0x1005484
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
movzx eax, bx
jmp 0x105e7a7
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105e6f8
test byte [eax + 0x1c], 2
je 0x105e6f8
cmp byte [eax + 0x19], 2
jb 0x105e6f8
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.010091cb
jmp 0x105e6f8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x448], esi
jne 0x105e9d1
mov eax, dword [0x1075004]
cmp eax, edi
je 0x105e9ca
test byte [eax + 0x1c], 2
je 0x105e9ca
cmp byte [eax + 0x19], 2
jb 0x105e9ca
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.0105e0ff
push 4
jmp 0x105e7a8
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.0105b7af
leave
ret 0x18