Function at 0x407de0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ca26b
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x517b6c]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
mov esi, dword [ebp + 8]
lea eax, [esp + 0x2c]
push eax
call fcn.004015c0
mov dword [esp + 0xd8], 0
cmp dword [esi + 4], 0
je 0x407e8e
push 0x2010
push str.CFILE::FileOpen
push 0x4dc8f0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x78]
mov dword [esp + 0xd8], 0xffffffff
call fcn.00401650
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.0049de5c
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp ebx, 0x40000000
mov dword [esi + 0xc], eax
jne 0x407f4c
cmp eax, 0xffffffff
je 0x407f51
test al, 1
je 0x407f58
push edi
push ecx
push str._nName_
push ecx
lea edx, [esp + 0x3c]
push 0x4dc938
push edx
call fcn.004020d0
add esp, 0xc
push eax
call fcn.004020d0
add esp, 0xc
push eax
call fcn.004020d0
add esp, 8
lea ecx, [esp + 0xb0]
lea eax, [esp + 0x2c]
call fcn.004016e0
cmp dword [eax + 0x18], 0x10
jb 0x407efc
mov eax, dword [eax + 4]
jmp 0x407eff
add eax, 4
push 0x2010
push str.CFILE::FileOpen
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0xb0]
call fcn.00403750
lea eax, [esp + 0x2c]
mov dword [esp + 0xd8], 0xffffffff
call fcn.00401300
xor eax, eax
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0xffffffff
jne 0x407f58
mov dword [esi + 0xc], 0
mov eax, dword [ebp + 0xc]
push 0
push 0x80
push eax
push 0
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x408053
cmp byte [ebp + 0x10], 0
je 0x40800d
push edi
push ecx
push str._nName_
push ecx
lea ecx, [esp + 0x3c]
push 0x4dc984
push ecx
call fcn.004020d0
add esp, 0xc
push eax
call fcn.004020d0
add esp, 0xc
push eax
call fcn.004020d0
add esp, 8
lea ecx, [esp + 0x10]
lea eax, [esp + 0x2c]
call fcn.004016e0
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x407fcf
mov eax, dword [eax + 4]
jmp 0x407fd2
add eax, 4
push 0x2010
push str.CFILE::FileOpen
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x28], edi
jb 0x407ff8
mov edx, dword [esp + 0x14]
push edx
call fcn.004ad032
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x78]
mov dword [esi + 4], 0
mov dword [esp + 0xd8], ebx
call fcn.00401650
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.0049de5c
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
add esi, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x78]
mov dword [esp + 0xd8], ebx
call fcn.00401650
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.0049de5c
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc