Function at 0x420d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b12d
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x5f0a00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x660], eax
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x628]
push eax
push 0x104
mov dword [ebp - 0x648], ecx
mov dword [ebp - 0x658], ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [esi + 0x120]
push eax
lea ecx, [ebp - 0x640]
call fcn.00415900
mov esi, dword [0x5f0130]
lea ecx, [ebp - 0x218]
mov edi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x650], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420da7
sub ecx, edx
mov eax, esi
sar ecx, 1
mov dword [ebp - 0x64c], ecx
je 0x420e19
lea eax, [ecx*2 + 0xe]
push eax
call fcn.00440020
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x420e11
mov eax, dword [ebp - 0x64c]
lea edi, [ecx + 0xc]
mov dword [ecx + 4], eax
xor edx, edx
mov dword [ecx + 8], eax
mov dword [ecx], 1
mov word [ecx + eax*2 + 0xc], dx
mov ecx, edi
add eax, eax
mov dword [ebp - 0x650], edi
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
call fcn.005577f0
add esp, 0xc
mov eax, edi
jmp 0x420e13
mov eax, esi
mov esi, dword [0x5f0130]
cmp dword [eax - 8], 0
mov byte [ebp - 4], 1
je 0x420ecf
push 0x10
mov dword [ebp - 0x654], esi
call fcn.00440020
add esp, 4
test eax, eax
je 0x420e66
xor ecx, ecx
mov dword [eax], 1
lea esi, [eax + 0xc]
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov word [eax + 0xe], cx
mov eax, 0x5c
mov dword [ebp - 0x654], esi
mov word [esi], ax
push 1
lea eax, [ebp - 0x65c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x650]
mov dword [ebp - 0x658], 1
call fcn.004241d0
mov ecx, 3
mov dword [ebp - 0x648], ecx
mov ecx, esi
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420ebd
test dx, dx
je 0x420eb9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420ebd
add eax, 4
add ecx, 4
test dx, dx
jne 0x420e97
xor eax, eax
jmp 0x420ec2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x420ed5
mov byte [ebp - 0x641], 1
jmp 0x420edc
mov esi, dword [ebp - 0x654]
mov byte [ebp - 0x641], 0
mov edx, dword [ebp - 0x648]
or ecx, 0xffffffff
test dl, 2
je 0x420f45
and edx, 0xfffffffd
mov dword [ebp - 0x648], edx
mov dword [ebp - 0x658], edx
mov eax, dword [ebp - 0x65c]
add eax, 0xfffffff4
mov dword [ebp - 4], 3
mov dword [ebp - 0x64c], eax
cmp eax, dword [0x5f012c]
je 0x420f45
mov edx, dword [ebp - 0x64c]
mov eax, ecx
lock xadd dword [edx], eax
dec eax
mov edx, dword [ebp - 0x648]
test eax, eax
jg 0x420f45
push dword [ebp - 0x64c]
call fcn.00408c50
mov edx, dword [ebp - 0x648]
add esp, 4
or ecx, 0xffffffff
mov dword [ebp - 4], 1
test dl, 1
je 0x420f78
add esi, 0xfffffff4
mov byte [ebp - 4], 4
cmp esi, dword [0x5f012c]
je 0x420f74
mov eax, ecx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x420f74
push esi
call fcn.00408c50
add esp, 4
mov byte [ebp - 4], 1
cmp byte [ebp - 0x641], 0
je 0x420f94
push 0x5c
lea ecx, [ebp - 0x650]
call fcn.00424a80
mov edi, dword [ebp - 0x650]
cmp dword [ebp - 0x62c], 7
lea eax, [ebp - 0x640]
cmova eax, dword [ebp - 0x640]
push eax
push edi
lea eax, [ebp - 0x420]
push 0x59b300
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp - 0x660]
lea ecx, [ebp - 0x420]
xorps xmm0, xmm0
lea edx, [ecx + 2]
add esp, 0x10
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420fe2
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040b6c0
add edi, 0xfffffff4
mov byte [ebp - 4], 5
cmp edi, dword [0x5f012c]
je 0x421024
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x421024
push edi
call fcn.00408c50
add esp, 4
mov ecx, dword [ebp - 0x62c]
cmp ecx, 7
jbe 0x421060
mov edx, dword [ebp - 0x640]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421056
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42107f
push ecx
push edx
call fcn.0055241f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551e44
mov esp, ebp
pop ebp
ret 4
call fcn.0055bf8b
int3