Function at 0x412ee0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52c53b
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov ebx, dword [ebp + 8]
push ebx
call fcn.00406720
add esp, 4
test al, al
je 0x413111
call fcn.00413b70
cmp byte [ebp + 0xc], 0
push ebx
je 0x413128
call fcn.004069c0
add esp, 4
test al, al
je 0x413111
mov dword [esp + 0x68], 0
cmp dword [ebx + 0x18], 8
lea esi, [ebx + 4]
jb 0x412f5b
mov eax, dword [esi]
jmp 0x412f5d
mov eax, esi
push 0
push 0x2000000
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x413111
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp dword [ebx + 0x18], 8
jb 0x412fa1
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0xa0
mov dword [esp + 0x20], eax
call fcn.004aaa2e
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x68], 1
je 0x412fd5
push 0
add edi, 8
push edi
call fcn.0040fb30
mov esi, eax
jmp 0x412fd7
xor esi, esi
mov byte [esp + 0x68], 0
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], esi
call fcn.004168e0
push esi
push esi
call fcn.0040fab0
add esp, 8
push 2
push 0x547fdc
mov byte [esp + 0x70], 2
call fcn.00408340
cmp eax, 0xffffffff
push 0xffffffffffffffff
je 0x4130ef
add eax, 1
push eax
lea edx, [esp + 0x48]
push edx
mov ecx, ebx
call fcn.00405a40
push 0xffffffffffffffff
push 0
lea edi, [esi + 0x10]
push eax
mov ecx, edi
mov byte [esp + 0x74], 3
call fcn.00403310
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 2
call fcn.00401e70
push edi
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.00408d00
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x2c]
mov byte [esp + 0x74], 4
call fcn.00403310
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 2
call fcn.00401e70
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov dword [esi + 0x60], ecx
mov edx, dword [esp + 0x28]
mov dword [esi + 0x48], edx
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x4c], eax
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x50], ecx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x54], edx
mov eax, dword [esp + 0x38]
mov dword [esi + 0x58], eax
mov ecx, dword [esp + 0x3c]
add edi, 8
lea eax, [esp + 0x20]
mov dword [esi + 0x5c], ecx
call fcn.00414880
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push ebx
push esi
call eax
mov bl, al
lea eax, [esp + 0x20]
mov byte [esp + 0x68], 0
call fcn.004101d0
lea ecx, [esp + 0x18]
call fcn.0043b960
mov al, bl
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push ebx
lea ecx, [esi + 0x10]
call fcn.00403310
lea eax, [esp + 0x20]
mov byte [esp + 0x68], 0
call fcn.004101d0
lea ecx, [esp + 0x18]
call fcn.0043b960
xor al, al
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
lea eax, [edi + 8]
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8