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

Disassembly:
push 0x40
mov eax, 0x43401a
call fcn.0041af0e
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x2c], edi
xor ecx, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], ecx
push ecx
mov byte [ebp - 0x2c], cl
xor eax, eax
push dword [ebp - 0x2c]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
push 0x100
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00407bdf
push 8
pop esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x14], esi
jb 0x404b73
mov eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, dword [ebp - 0x18]
jb 0x404ba5
jne 0x404b86
add eax, eax
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00405cc8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jb 0x404b9b
mov eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00405cc8
xor eax, eax
lea ecx, [ebp - 0x4c]
inc eax
mov dword [ebp - 4], eax
mov edx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x2c], eax
call fcn.00407896
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x30], 0x14
cmp dword [ebp - 0x38], esi
jb 0x404bd8
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jb 0x404be3
mov eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0041f6e3
pop ecx
pop ecx
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.00403003
test esi, esi
jne 0x404c07
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 0x14], 8
jmp 0x404cc6
call fcn.00404944
test al, al
je 0x404c4d
mov edx, dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea ecx, [ebp - 0x4c]
call fcn.00407896
push 8
pop esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x30], 0x36
cmp dword [ebp - 0x38], esi
jb 0x404c33
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jb 0x404c3e
mov eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0041f6e3
pop ecx
pop ecx
test eax, eax
jne 0x404c50
jmp 0x404c54
push 8
pop esi
mov byte [ebp - 0x2c], 0
test byte [ebp - 0x30], 2
je 0x404c62
lea ecx, [ebp - 0x4c]
call fcn.00403003
cmp byte [ebp - 0x2c], 0
jne 0x404cbf
push ecx
lea ecx, [ebp - 0x28]
call fcn.004069d0
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0x14], esi
jb 0x404c7b
mov ebx, dword [ebx]
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00407419
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jb 0x404c90
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404cbf
test al, 0x10
jne 0x404cbf
lea ecx, [ebp - 0x28]
call fcn.00404732
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00402c56
cmp dword [ebp - 0x14], esi
jb 0x404ce8
push dword [ebp - 0x28]
push 0
jmp 0x404cdb
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 0x14], esi
mov dword [edi], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 7
mov word [edi], ax
jb 0x404ce8
push dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
call fcn.0041aebd
ret