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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418f90
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x423040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x74], edi
cmp dword [esi + 0x10], 0
jne 0x403547
mov eax, dword [0x423030]
cmp eax, 0x423030
je 0x403540
test byte [eax + 0x1c], 4
je 0x403540
cmp byte [eax + 0x19], 5
jb 0x403540
cmp dword [esi + 0x14], 0x10
jb 0x40352a
mov esi, dword [esi]
push esi
push 0x41a498
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00402c70
add esp, 0x14
xor al, al
jmp 0x4037d8
push esi
lea ecx, [ebp - 0x40]
call fcn.00402400
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
jb 0x403563
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
cmp eax, 1
jne 0x4036e8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
mov byte [ebp - 4], al
lea ecx, [ebp - 0x28]
push 0x104
lfence
call fcn.00403d40
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x4035a6
mov eax, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push eax
push dword [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jbe 0x403624
dec eax
cmp eax, ecx
ja 0x4035d3
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
jb 0x4035ca
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ecx + eax], 0
jmp 0x4035e3
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
lfence
call fcn.00403d40
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x4035ef
mov eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jbe 0x403624
mov eax, dword [0x423030]
cmp eax, 0x423030
je 0x403661
test byte [eax + 0x1c], 4
je 0x403661
cmp byte [eax + 0x19], 5
jb 0x403661
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41a498
push 0xb
jmp 0x40364e
test eax, eax
jne 0x403670
mov eax, dword [0x423030]
cmp eax, 0x423030
je 0x403661
test byte [eax + 0x1c], 4
je 0x403661
cmp byte [eax + 0x19], 5
jb 0x403661
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41a498
push 0xc
mov eax, dword [0x423030]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00404180
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.00401890
xor bl, bl
jmp 0x4037ce
cmp eax, ecx
ja 0x403689
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
jb 0x403680
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ecx + eax], 0
jmp 0x403699
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
lfence
call fcn.00403d40
push 0x41a4a8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004032c0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00403250
add esp, 0x18
lea ecx, [ebp - 0x40]
push eax
call fcn.00403480
lea ecx, [ebp - 0x58]
call fcn.00401890
lea ecx, [ebp - 0x70]
call fcn.00401890
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401890
mov edi, dword [ebp - 0x74]
lea eax, [ebp - 0x40]
push eax
call fcn.00403c20
add esp, 4
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
jb 0x403700
mov edx, dword [ebp - 0x40]
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403717
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00401d50
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
jb 0x40373a
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403752
shr ebx, 4
not bl
and bl, 1
jmp 0x40375a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401890
test bl, bl
jne 0x4037b1
mov eax, dword [0x423030]
cmp eax, 0x423030
je 0x4037ad
test byte [eax + 0x1c], 4
je 0x4037ad
cmp byte [eax + 0x19], 5
jb 0x4037ad
cmp dword [esi + 0x14], 0x10
jb 0x40378a
mov esi, dword [esi]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
jb 0x403796
mov ecx, dword [ebp - 0x40]
push esi
push ecx
push 0x41a498
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004041b0
add esp, 0x18
xor bl, bl
jmp 0x4037ce
lea eax, [ebp - 0x40]
cmp edi, eax
je 0x4037cc
cmp dword [ebp - 0x2c], 0x10
jb 0x4037c1
mov eax, dword [ebp - 0x40]
push dword [ebp - 0x30]
mov ecx, edi
push eax
call fcn.00401d50
mov bl, 1
lea ecx, [ebp - 0x40]
call fcn.00401890
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405962
mov esp, ebp
pop ebp
ret