Function at 0x4094a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4394c1
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x448664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
xor ecx, ecx
mov word [ebp - 0x43c], cx
mov edi, 7
mov ecx, eax
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x42c], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4094f2
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x43c]
call fcn.00401b60
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x42c], ebx
jne 0x409548
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x428], 8
jb 0x409537
mov edx, dword [ebp - 0x43c]
push edx
call fcn.0041d491
add esp, 4
xor eax, eax
mov word [ebp - 0x43c], ax
or eax, 0xffffffff
jmp 0x40976d
xor ecx, ecx
push 0xb
mov eax, 0x43d8a4
lea esi, [ebp - 0x458]
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], cx
call fcn.00401b60
mov byte [ebp - 4], 1
mov edx, esi
push edx
call fcn.00418ab0
add esp, 4
test al, al
sete byte [ebp - 0x459]
mov byte [ebp - 4], bl
mov esi, 8
cmp dword [ebp - 0x444], esi
jb 0x4095a6
mov eax, dword [ebp - 0x458]
push eax
call fcn.0041d491
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], cx
cmp byte [ebp - 0x459], bl
je 0x4095f4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x428], esi
jb 0x4095e1
mov edx, dword [ebp - 0x43c]
push edx
call fcn.0041d491
add esp, 4
xor eax, eax
mov word [ebp - 0x43c], ax
mov eax, 0xfffffffe
jmp 0x40976d
push 0x206
lea edx, [ebp - 0x41e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x420], cx
call fcn.00422080
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.00422080
add esp, 0x18
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x43d54c
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
push str._s_s_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x458], dx
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x448], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409685
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x458]
call fcn.00401b60
mov byte [ebp - 4], 2
mov eax, esi
push eax
call fcn.00418380
add esp, 4
mov byte [ebp - 4], bl
mov esi, 8
cmp dword [ebp - 0x444], esi
jb 0x4096d4
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.0041d491
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], dx
call fcn.004093b0
test al, al
jne 0x409724
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x428], esi
jb 0x409716
mov eax, dword [ebp - 0x43c]
push eax
call fcn.0041d491
add esp, 4
xor ecx, ecx
mov word [ebp - 0x43c], cx
lea eax, [ecx - 3]
jmp 0x40976d
cmp byte [0x44968c], bl
je 0x409746
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
cmp byte [0x44968c], bl
jne 0x409732
mov esi, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x428], esi
jb 0x409764
mov edx, dword [ebp - 0x43c]
push edx
call fcn.0041d491
add esp, 4
xor eax, eax
mov word [ebp - 0x43c], ax
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x428], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cfa8
mov esp, ebp
pop ebp
ret 0x10