Function at 0x401a00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x436821
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x446640]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x446640]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
push 0
mov esi, ecx
mov dword [esp + 0x18], eax
call ebx
mov edi, eax
mov eax, dword [esi + 0x120]
add esi, 0x120
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x401a7f
push edi
mov ecx, esi
call fcn.00402790
mov eax, dword [esi]
test eax, eax
je 0x401c54
push eax
push edi
call ebx
test eax, eax
je 0x401c54
mov edx, dword [esi]
test edx, edx
jne 0x401a9f
xor eax, eax
jmp 0x401ab9
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401aa4
sub eax, edi
sar eax, 1
js 0x401d73
cmp eax, dword [edx - 8]
jg 0x401d73
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
push 0xb
mov word [ecx + eax*2], 0
push str.autorun.dll
mov ecx, esi
call fcn.004025e0
mov esi, dword [esi]
push 0x9001
push esi
lea ecx, [esp + 0x34]
call fcn.00408e81
mov edx, dword [esp + 0x10]
push 0x8020
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0xc0], 0
call fcn.00408e81
mov byte [esp + 0xb8], 1
cmp dword [esp + 0x20], 0
je 0x401c2f
cmp dword [esp + 0x30], 0
je 0x401c2f
lea eax, [esp + 0x3c]
call fcn.004018c0
lea ecx, [esp + 0x1c]
call fcn.00408736
test edx, edx
mov esi, eax
jb 0x401b52
ja 0x401c2f
cmp esi, 0x1000000
ja 0x401c2f
lea eax, [esi + 0xa]
push eax
call fcn.00402a26
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push esi
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0], 2
call fcn.00408551
lea esi, [esi + edi - 0x64]
cmp edi, esi
mov dword [esp + 0x10], esi
ja 0x401c1e
mov eax, 0x64
lea ecx, [esp + 0x3c]
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x401baa
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x401b92
test eax, eax
je 0x401c07
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x401bf9
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401c07
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x401bf9
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401c07
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x401bf9
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401c07
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x401c07
test esi, esi
mov eax, 1
jg 0x401c09
or eax, 0xffffffff
jmp 0x401c09
xor eax, eax
test eax, eax
je 0x401c7c
add edi, 1
cmp edi, dword [esp + 0x10]
jbe 0x401b87
mov edi, dword [esp + 0x14]
push edi
mov byte [esp + 0xbc], 1
call fcn.00402a21
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 0
call fcn.00408950
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00408950
xor al, al
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00420828
mov esp, ebp
pop ebp
ret 4
add edi, 0x64
cmp edi, dword [esp + 0x10]
mov dword [esp + 0x18], edi
ja 0x401c1a
mov eax, 0x64
lea ecx, [esp + 0x3c]
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x401cac
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x401c94
test eax, eax
je 0x401d09
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x401cfb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401d09
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x401cfb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401d09
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x401cfb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x401d09
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x401d09
test esi, esi
mov eax, 1
jg 0x401d0b
or eax, 0xffffffff
jmp 0x401d0b
xor eax, eax
test eax, eax
je 0x401d21
add edi, 1
cmp edi, dword [esp + 0x10]
jbe 0x401c89
jmp 0x401c1a
mov eax, dword [esp + 0x18]
sub edi, eax
push edi
push eax
lea ecx, [esp + 0x34]
call fcn.00408591
mov byte [esp + 0xb8], 1
mov eax, dword [esp + 0x14]
push eax
call fcn.00402a21
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 0
call fcn.00408950
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00408950
mov al, 1
jmp 0x401c56
push 0x80070057
call fcn.004012f0
int3