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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c1d42
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4e3a20]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x4e3a20]
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 0x4944a5
cmp word [esp + 0x5c], 0
jne 0x49427a
xor ecx, ecx
jmp 0x494290
lea ecx, [esp + 0x5c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494281
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402440
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [esp + 0x4c], ax
lea eax, [esi + 0x34]
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
call fcn.00402a20
mov byte [esp + 0x278], 1
push 6
xor eax, eax
push str..trace
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.00402440
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x44]
mov byte [esp + 0x278], 2
call fcn.0049b5b0
mov byte [esp + 0x278], 1
cmp dword [esp + 0x40], 8
mov bl, al
jb 0x494327
push dword [esp + 0x2c]
call fcn.004a37d1
add esp, 4
test bl, bl
je 0x49447b
lea edx, [esp + 0x44]
lea ecx, [esp + 0x14]
call fcn.0049b3c0
test al, al
je 0x49447b
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 0x49436a
mov dword [esi + 0x64], 0xa
jmp 0x49447b
push str..debug
lea ecx, [esp + 0x30]
call fcn.00405990
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 3
call fcn.0049b5b0
lea ecx, [esp + 0x2c]
mov bl, al
mov byte [esp + 0x278], 1
call fcn.00401fa0
test bl, bl
je 0x4943c2
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 0x49446f
lea ecx, [esp + 0x14]
call fcn.0049b660
test al, al
je 0x49447b
push str.asu.trace
lea ecx, [esp + 0x30]
call fcn.00405990
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 4
call fcn.0049b3c0
lea ecx, [esp + 0x2c]
mov bl, al
mov byte [esp + 0x278], 1
call fcn.00401fa0
test bl, bl
je 0x49447b
lea ecx, [esp + 0x14]
call fcn.0049b3a0
test al, al
je 0x494423
mov dword [esi + 0x64], 0xa
jmp 0x49447b
lea ecx, [esp + 0x14]
call fcn.0049b660
test al, al
je 0x49447b
push str.asu.debug
lea ecx, [esp + 0x30]
call fcn.00405990
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 5
call fcn.0049b3c0
lea ecx, [esp + 0x2c]
mov bl, al
call fcn.00401fa0
test bl, bl
je 0x49447b
lea ecx, [esp + 0x14]
call fcn.0049b3a0
test al, al
je 0x49447b
cmp edi, 0x14
jle 0x49447b
mov dword [esi + 0x64], 0x14
cmp dword [esp + 0x58], 8
jb 0x49448e
push dword [esp + 0x44]
call fcn.004a37d1
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 0x4944b8
push dword [esp + 0x14]
call fcn.004a37d1
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.004a2eda
mov esp, ebp
pop ebp
ret 4