Function at 0x458e60
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a354
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x5f11e4]
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 dword [ebp - 0x2e0], edx
mov edi, ecx
mov byte [ebp - 0x2d9], 1
test edi, edi
je 0x4591c0
push 0
push edi
call fcn.00518a0a
add esp, 8
test eax, eax
jne 0x4591c0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
call fcn.0044bd60
push 2
push 0x5c4f90
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0044c3c0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2d8]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov edx, 0x5c4cf8
lea ecx, [ebp - 0x2ac]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x458f36
test ax, ax
je 0x458f32
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x458f36
add ecx, 4
add edx, 4
test ax, ax
jne 0x458f10
xor eax, eax
jmp 0x458f3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x45914c
mov ecx, 0x5c4f98
lea eax, [ebp - 0x2ac]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x458f76
test dx, dx
je 0x458f72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x458f76
add eax, 4
add ecx, 4
test dx, dx
jne 0x458f50
xor eax, eax
jmp 0x458f7b
sbb eax, eax
or eax, 1
test eax, eax
je 0x45914c
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [edi], ax
je 0x458fb0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458fa1
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x58]
call fcn.0044c2c0
push 0x5c405c
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0045ca50
add esp, 0xc
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0045ca50
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x459029
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x45900c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0044c9a0
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0045b2a0
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x45903e
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0044c9a0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x45906d
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.0044c9a0
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x88], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
cmp eax, 8
jb 0x45909d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0044c9a0
mov eax, dword [ebp - 0x2e0]
lea ecx, [ebp - 0x2ac]
push dword [ebp - 0x2e0]
push ecx
mov esi, dword [eax + 4]
mov edx, esi
mov ecx, dword [eax]
call fcn.0045d4e0
add esp, 8
cmp eax, esi
jne 0x45914c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x459138
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x2ec]
cmovae ecx, dword [ebp - 0x28]
call fcn.00458e60
lea ecx, [ebp - 0x2ec]
mov byte [ebp - 4], 1
call fcn.00459480
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x45914c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00518d6a
add esp, 4
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x458f00
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, byte [ebp - 0x2d9]
xor ecx, ecx
cmp eax, 0x12
mov eax, dword [ebp - 0x2c]
cmovne ebx, ecx
cmp eax, 8
jb 0x459193
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0044c9a0
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x4591bc
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0044c9a0
mov al, bl
jmp 0x4591c2
xor al, al
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.004feb45
mov esp, ebp
pop ebp
ret