Function at 0x4075f3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x420161
call fcn.00412bcc
sub esp, 0x43c
push ebp
xor edx, edx
push esi
mov dword [esp + 0x20], edx
call fcn.0040741d
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, 3
jae 0x407632
push str.Local1023
push edx
push edx
push edx
call ebp
test eax, eax
je 0x407630
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor edx, edx
mov esi, dword [esp + 0x45c]
test esi, esi
jne 0x407667
mov eax, dword [esp + 0x458]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], edx
mov word [eax], cx
mov dword [esp + 0x44c], edx
mov dword [esp + 0x20], 1
jmp 0x40786a
xor eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], edx
mov word [esp + 8], ax
mov dword [esp + 0x44c], 1
call fcn.0040741d
cmp eax, 3
jae 0x4076aa
push edx
push edx
push edx
push edx
call ebp
test eax, eax
je 0x4076a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
push ebx
push edi
mov edi, dword [esp + 0x468]
mov bl, dl
test edi, edi
je 0x4076fa
call fcn.0040741d
cmp eax, 3
jae 0x4076d5
lea eax, [esp + 0x38]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor edx, edx
dec edi
sete bl
call fcn.0040741d
cmp eax, 3
jae 0x407703
push str.Local1027
push edx
push edx
push edx
call ebp
test eax, eax
je 0x407703
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x407703
cmp byte [esi], 0
je 0x407835
mov dl, byte [esi]
inc esi
test dl, dl
jns 0x407802
cmp edi, 2
jb 0x407788
mov al, dl
and al, 0xf0
cmp al, 0xe0
jne 0x407788
mov cl, byte [esi]
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x407788
mov dh, byte [esi + 1]
mov al, dh
and al, 0xc0
cmp al, 0x80
jne 0x407788
and cl, 0x3f
movsx cx, cl
movzx eax, dl
shl ax, 6
or cx, ax
and dh, 0x3f
shl cx, 6
movsx ax, dh
or cx, ax
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x20]
movzx edx, cx
lea ecx, [esp + 0x10]
cmovae ecx, dword [esp + 0x10]
push edx
lea eax, [ecx + eax*2]
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.00406f3f
test edi, edi
je 0x407780
dec edi
dec edi
sete bl
add esi, 2
jmp 0x40782a
cmp edi, 1
jb 0x40782a
mov al, dl
and al, 0xe0
cmp al, 0xc0
jne 0x4077ea
mov ah, byte [esi]
mov al, ah
and al, 0xc0
cmp al, 0x80
jne 0x4077ea
and dl, 0x3f
and ah, 0x3f
movzx ecx, dl
movsx ax, ah
shl cx, 6
or cx, ax
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x20]
movzx edx, cx
lea ecx, [esp + 0x10]
cmovae ecx, dword [esp + 0x10]
push edx
lea eax, [ecx + eax*2]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00406f3f
test edi, edi
je 0x4077e7
dec edi
sete bl
inc esi
jmp 0x40782a
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x40782a
test edi, edi
je 0x4077fa
dec edi
sete bl
inc esi
cmp edi, 1
jae 0x4077ea
jmp 0x40782a
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
cmovae ecx, dword [esp + 0x10]
lea eax, [ecx + eax*2]
movzx ecx, dl
push ecx
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00406f3f
push 0
pop edx
test bl, bl
je 0x4076b5
mov ecx, dword [esp + 0x460]
lea eax, [esp + 0x10]
push eax
call fcn.0040684f
xor eax, eax
inc eax
mov dword [esp + 0x28], eax
mov byte [esp + 0x454], 0
push 0
push eax
lea ecx, [esp + 0x18]
call fcn.00401afa
mov eax, dword [esp + 0x460]
pop edi
pop ebx
mov ecx, dword [esp + 0x444]
pop esi
pop ebp
mov dword fs:[0], ecx
leave
ret