Function at 0x42ed90
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e462
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x474390]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x474390]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x64], edi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x278], eax
lea eax, [esp + 0x5c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x42f045
cmp word [esp + 0x5c], 0
jne 0x42ee1a
xor ecx, ecx
jmp 0x42ee30
lea ecx, [esp + 0x5c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ee21
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
call fcn.00410bb0
xor eax, eax
mov dword [esp + 0x58], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x4c], ax
lea ecx, [esp + 0x4c]
lea eax, [esi + 0x34]
mov dword [esp + 0x5c], 0
push eax
call fcn.00410ed0
mov byte [esp + 0x278], 1
lea ecx, [esp + 0x2c]
push 6
xor eax, eax
mov dword [esp + 0x44], 7
push str..trace
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.00410bb0
lea edx, [esp + 0x2c]
mov byte [esp + 0x278], 2
lea ecx, [esp + 0x44]
call fcn.00435750
mov byte [esp + 0x278], 1
mov bl, al
cmp dword [esp + 0x40], 8
jb 0x42eec7
push dword [esp + 0x2c]
call fcn.00440147
add esp, 4
test bl, bl
je 0x42f01b
lea edx, [esp + 0x44]
lea ecx, [esp + 0x14]
call fcn.00435560
test al, al
je 0x42f01b
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x42ef0a
mov dword [esi + 0x64], 0xa
jmp 0x42f01b
push str..debug
lea ecx, [esp + 0x30]
call fcn.00410210
lea edx, [esp + 0x2c]
mov byte [esp + 0x278], 3
lea ecx, [esp + 0x14]
call fcn.00435750
lea ecx, [esp + 0x2c]
mov byte [esp + 0x278], 1
mov bl, al
call fcn.004102e0
test bl, bl
je 0x42ef62
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x42f00f
lea ecx, [esp + 0x14]
call fcn.00435800
test al, al
je 0x42f01b
push str.asu.trace
lea ecx, [esp + 0x30]
call fcn.00410210
lea edx, [esp + 0x2c]
mov byte [esp + 0x278], 4
lea ecx, [esp + 0x14]
call fcn.00435560
lea ecx, [esp + 0x2c]
mov byte [esp + 0x278], 1
mov bl, al
call fcn.004102e0
test bl, bl
je 0x42f01b
lea ecx, [esp + 0x14]
call fcn.00435540
test al, al
je 0x42efc3
mov dword [esi + 0x64], 0xa
jmp 0x42f01b
lea ecx, [esp + 0x14]
call fcn.00435800
test al, al
je 0x42f01b
push str.asu.debug
lea ecx, [esp + 0x30]
call fcn.00410210
lea edx, [esp + 0x2c]
mov byte [esp + 0x278], 5
lea ecx, [esp + 0x14]
call fcn.00435560
lea ecx, [esp + 0x2c]
mov bl, al
call fcn.004102e0
test bl, bl
je 0x42f01b
lea ecx, [esp + 0x14]
call fcn.00435540
test al, al
je 0x42f01b
cmp edi, 0x14
jle 0x42f01b
mov dword [esi + 0x64], 0x14
cmp dword [esp + 0x58], 8
jb 0x42f02e
push dword [esp + 0x44]
call fcn.00440147
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
cmp dword [esp + 0x28], 8
jb 0x42f058
push dword [esp + 0x14]
call fcn.00440147
add esp, 4
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0043f991
mov esp, ebp
pop ebp
ret 4