Function at 0x43e470
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7da4
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x66c214]
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 0x43e79c
push 0
push edi
call fcn.0058d125
add esp, 8
test eax, eax
jne 0x43e79c
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.00433230
push 2
push 0x641dc8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00436450
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, 0x640510
lea ecx, [ebp - 0x2ac]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x43e546
test ax, ax
je 0x43e542
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x43e546
add ecx, 4
add edx, 4
test ax, ax
jne 0x43e520
xor eax, eax
jmp 0x43e54b
sbb eax, eax
or eax, 1
test eax, eax
je 0x43e728
mov ecx, 0x641dd0
lea eax, [ebp - 0x2ac]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43e586
test dx, dx
je 0x43e582
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43e586
add eax, 4
add ecx, 4
test dx, dx
jne 0x43e560
xor eax, eax
jmp 0x43e58b
sbb eax, eax
or eax, 1
test eax, eax
je 0x43e728
push edi
lea ecx, [ebp - 0x88]
call fcn.00433230
push 0x6409e8
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
call fcn.00442060
add esp, 0xc
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00442060
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x43e608
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x43e5eb
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433df0
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.00440940
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x43e61d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00433df0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x43e646
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00433df0
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x43e679
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00433df0
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.004427f0
add esp, 8
cmp eax, esi
jne 0x43e728
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 0x43e714
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.0043e470
lea ecx, [ebp - 0x2ec]
mov byte [ebp - 4], 1
call fcn.0043eaf0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x43e728
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0058d4fd
add esp, 4
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43e510
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 0x43e76f
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00433df0
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 0x43e798
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00433df0
mov al, bl
jmp 0x43e79e
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.00562e44
mov esp, ebp
pop ebp
ret