Function at 0x401720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4237e3
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x433050]
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 ebx, ecx
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x134], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401797
sub ecx, edx
lea eax, [ebp - 0x12c]
push ecx
push eax
lea ecx, [ebp - 0x144]
call fcn.00402050
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x130]
mov eax, edx
mov ecx, dword [ebp - 0x134]
sub eax, ecx
push 9
push str.vworkApi_
cmp eax, 9
jb 0x4017fd
cmp edx, 0x10
lea esi, [ebp - 0x144]
lea eax, [ecx + 9]
cmovae esi, dword [ebp - 0x144]
add esi, ecx
mov dword [ebp - 0x134], eax
push esi
call fcn.004087c0
add esp, 0xc
mov byte [esi + 9], 0
jmp 0x401817
mov byte [ebp - 0x148], 0
lea ecx, [ebp - 0x144]
push dword [ebp - 0x148]
push 9
call fcn.00402190
lea esi, [ebp - 0x13]
test ebx, ebx
jns 0x401848
neg ebx
mov eax, 0xcccccccd
dec esi
mul ebx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [esi], bl
mov ebx, edx
test ebx, ebx
jne 0x401820
dec esi
mov byte [esi], 0x2d
jmp 0x40186a
mov eax, 0xcccccccd
dec esi
mul ebx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [esi], bl
mov ebx, edx
test ebx, ebx
jne 0x401848
xor ebx, ebx
mov dword [ebp - 0x160], 0
lea eax, [ebp - 0x13]
mov dword [ebp - 0x150], ebx
mov byte [ebp - 0x160], bl
mov edi, 0xf
mov dword [ebp - 0x14c], edi
cmp esi, eax
je 0x4018af
sub eax, esi
lea ecx, [ebp - 0x160]
push eax
push esi
call fcn.00402050
mov edi, dword [ebp - 0x14c]
mov ebx, dword [ebp - 0x150]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x160]
mov esi, dword [ebp - 0x130]
cmp edi, 0x10
mov edx, dword [ebp - 0x134]
mov eax, esi
cmovae ecx, dword [ebp - 0x160]
sub eax, edx
push ebx
push ecx
cmp ebx, eax
ja 0x401904
lea eax, [edx + ebx]
cmp esi, 0x10
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x144]
cmovae eax, dword [ebp - 0x144]
lea esi, [eax + edx]
push esi
call fcn.004087c0
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x401923
mov byte [ebp - 0x148], 0
lea ecx, [ebp - 0x144]
push dword [ebp - 0x148]
push ebx
call fcn.00402190
mov edi, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x160]
cmp edi, 0x10
jb 0x401957
inc edi
mov eax, ecx
cmp edi, 0x1000
jb 0x40194d
mov ecx, dword [ecx - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a30
push edi
push ecx
call fcn.0040737a
add esp, 8
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push 0x42f6f8
cmovae eax, dword [ebp - 0x144]
push eax
call fcn.0040b812
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov esi, eax
cmovae ecx, dword [ebp + 8]
push esi
push ecx
call fcn.0040b9ca
push esi
call fcn.0040b8a0
mov edx, dword [ebp - 0x130]
add esp, 0x14
cmp edx, 0x10
jb 0x4019c9
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4019bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a30
push edx
push ecx
call fcn.0040737a
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
cmp edx, 0x10
jb 0x401a14
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401a0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a30
push edx
push ecx
call fcn.0040737a
add esp, 8
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.0040733c
mov esp, ebp
pop ebp
ret
call fcn.0040b6ff
int3