Function at 0x416c5c
Capabilities:
Get common file path

Disassembly:
mov eax, 0x42a2e8
call fcn.0041e61c
sub esp, 0x150
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x28], ebx
push 0xf
pop eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], 1
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
mov byte [ebp - 4], 2
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x416d05
lea eax, [ebp - 0x15c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x416ce7
cmp byte [ebp - 0x15c], 0
jne 0x416cca
mov eax, ebx
jmp 0x416cd7
lea eax, [ebp - 0x15c]
push eax
call fcn.0041d660
pop ecx
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x24]
call fcn.004024bb
cmp dword [ebp - 0x10], 0x10
mov ecx, dword [ebp - 0x24]
jae 0x416cf3
lea ecx, [ebp - 0x24]
mov dl, 1
call fcn.00417474
test al, al
jne 0x416d16
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x416d16
push esi
call fcn.00401035
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.004024bb
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x416d4e
cmp dword [ebp - 0x10], 0x10
mov ecx, dword [ebp - 0x24]
jae 0x416d29
lea ecx, [ebp - 0x24]
cmp byte [ecx + eax - 1], 0x5c
je 0x416d4e
cmp dword [ebp - 0x10], 0x10
mov ecx, dword [ebp - 0x24]
jae 0x416d3c
lea ecx, [ebp - 0x24]
cmp byte [ecx + eax - 1], 0x2f
je 0x416d4e
push 0x5c
push ecx
lea ecx, [ebp - 0x24]
call fcn.00410f0c
mov edi, ebx
cmp dword [ebp - 0x10], 0x10
mov ebx, dword [ebp - 0x24]
jae 0x416d5c
lea ebx, [ebp - 0x24]
call fcn.0041e1d5
mov esi, eax
shl esi, 0x10
call fcn.0041e1d5
or eax, esi
push eax
push ebx
lea eax, [ebp - 0x58]
push 0x4f49fc
push eax
call fcn.004123e0
add esp, 0x10
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x40]
call fcn.00410a21
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00402161
cmp dword [ebp - 0x2c], 0x10
mov eax, dword [ebp - 0x40]
jae 0x416da5
lea eax, [ebp - 0x40]
push eax
call fcn.00417210
pop ecx
mov ecx, dword [0x4f9e88]
test ecx, ecx
je 0x416dd9
cmp dword [ebp - 0x2c], 0x10
mov eax, dword [ebp - 0x40]
jae 0x416dc2
lea eax, [ebp - 0x40]
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
push eax
call ecx
jmp 0x416e04
cmp dword [0x4f9c50], 0
je 0x416e01
push 0x14
pop eax
call fcn.0041ea40
push esp
push 0x4f4a08
call fcn.0040df22
push eax
call dword [0x4f9c50]
add esp, 0xc
jmp 0x416e09
or eax, 0xffffffff
cmp eax, 0xffffffff
jne 0x416e49
inc edi
cmp edi, 0x200
jl 0x416d50
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402161
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
call fcn.00402161
mov eax, esi
jmp 0x416e7e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.00410db9
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402161
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402161
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret