Function at 0x491780
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x57ef87
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x732480]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x41c]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 0
mov dword [esi], 0x71f078
lea eax, [ebp + 0x208]
mov dword [ebp - 4], 0
push eax
push 0x104
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
or ebx, 0xffffffff
test edi, edi
je 0x4918d7
push 0x104
lea eax, [ebp]
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x491835
cmp eax, 0x104
jae 0x491835
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00435080
add esp, 0xc
mov edi, eax
lea edx, [ebx + 4]
jmp 0x491850
push edi
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00435080
add esp, 0xc
mov edi, eax
mov edx, 5
mov ecx, dword [esi]
mov eax, dword [edi]
mov dword [esi], eax
mov dword [ebp - 0x10], edx
mov dword [edi], ecx
test dl, 4
je 0x491897
mov eax, dword [ebp - 0x18]
and edx, 0xfffffffb
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x491885
cmp eax, 0xffffffff
je 0x491894
mov eax, dword [ebp - 0x18]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x491894
push 4
push 2
push dword [ebp - 0x18]
call fcn.00425140
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
test dl, 2
je 0x4918d7
mov eax, dword [ebp - 0x14]
and edx, 0xfffffffd
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4918c8
cmp eax, 0xffffffff
je 0x4918d7
mov eax, dword [ebp - 0x14]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4918d7
push 4
push 2
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x491945
mov edi, 0x5c
push 1
push ecx
mov eax, esp
mov ecx, esi
mov word [eax], di
call fcn.00429ee0
test al, al
je 0x491902
push 1
mov ecx, esi
call fcn.004296b0
jmp 0x4918e4
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004388a0
mov ecx, dword [esi]
mov edx, eax
add esp, 8
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x491936
cmp eax, 0xffffffff
je 0x491945
mov eax, dword [ebp - 0x14]
lock xadd dword [eax], ebx
dec ebx
setne al
test al, al
jne 0x491945
push 4
push 2
push dword [ebp - 0x14]
call fcn.00425140
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x49195e
push str.C:_tmp
push 6
mov ecx, esi
call fcn.00427430
jmp 0x4919dd
cmp eax, 2
jl 0x4919dd
mov eax, dword [ecx]
cmp eax, 1
je 0x49196e
test eax, eax
jne 0x491976
mov eax, dword [esi]
cmp dword [eax + 0xc], 0x10
je 0x491986
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 4]
inc eax
push eax
call fcn.0042c850
mov ecx, dword [esi]
cmp dword [ecx + 4], 1
jle 0x4919dd
mov eax, dword [ecx + 0xc]
cmp word [eax + ecx + 2], 0x3a
jne 0x4919dd
movzx ecx, word [eax + ecx]
call fcn.0042edd0
movzx edi, ax
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, 1
je 0x4919b2
test eax, eax
jne 0x4919ba
mov eax, dword [esi]
cmp dword [eax + 0xc], 0x10
je 0x4919ca
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 4]
inc eax
push eax
call fcn.0042c850
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
call fcn.004577b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00553392
lea esp, [ebp + 0x414]
pop ebp
ret