Function at 0x456ba0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578964
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x5df3f4]
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 0x456f00
push 0
push edi
call fcn.00524175
add esp, 8
test eax, eax
jne 0x456f00
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.0044d0f0
push 2
push 0x5b5c78
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00450370
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, 0x5b5680
lea ecx, [ebp - 0x2ac]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x456c76
test ax, ax
je 0x456c72
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x456c76
add ecx, 4
add edx, 4
test ax, ax
jne 0x456c50
xor eax, eax
jmp 0x456c7b
sbb eax, eax
or eax, 1
test eax, eax
je 0x456e8c
mov ecx, 0x5b5c80
lea eax, [ebp - 0x2ac]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x456cb6
test dx, dx
je 0x456cb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x456cb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x456c90
xor eax, eax
jmp 0x456cbb
sbb eax, eax
or eax, 1
test eax, eax
je 0x456e8c
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [edi], ax
je 0x456cf0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456ce1
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x58]
call fcn.0044d430
push 0x5b5b4c
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0045a630
add esp, 0xc
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0045a630
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x456d69
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x456d4c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0044d810
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.00459050
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x456d7e
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0044d810
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 0x456dad
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.0044d810
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 0x456ddd
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0044d810
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.0045acd0
add esp, 8
cmp eax, esi
jne 0x456e8c
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 0x456e78
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.00456ba0
lea ecx, [ebp - 0x2ec]
mov byte [ebp - 4], 1
call fcn.00457250
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x456e8c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005244d5
add esp, 4
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x456c40
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 0x456ed3
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0044d810
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 0x456efc
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0044d810
mov al, bl
jmp 0x456f02
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.0050ad85
mov esp, ebp
pop ebp
ret