Function at 0x1005f150
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102164fb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x238
mov eax, dword [0x102c6100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x105
push ecx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [ebp - 0x228]
call fcn.1005ee90
mov esi, eax
test esi, esi
je 0x1005f3f0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x228]
sub esi, eax
sar esi, 1
push eax
mov dword [ebp - 0x248], esi
call edi
cmp eax, esi
mov esi, dword [sym.imp.USER32.dll_CharPrevW]
jle 0x1005f240
nop dword [eax]
push 0x102d1338
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x1005f32d
lea eax, [ebp - 0x228]
push eax
call edi
lea eax, [ebp + eax*2 - 0x228]
nop dword [eax + eax]
cmp word [eax], 0x5c
je 0x1005f22a
push eax
lea eax, [ebp - 0x228]
push eax
call esi
lea ecx, [ebp - 0x228]
cmp eax, ecx
ja 0x1005f210
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x228]
push eax
call edi
cmp eax, dword [ebp - 0x248]
jg 0x1005f1e0
lea eax, [ebp - 0x228]
push eax
call edi
lea ecx, [ebp - 0x228]
lea eax, [ecx + eax*2]
push eax
mov eax, ecx
push eax
call esi
cmp word [eax], 0x5c
je 0x1005f270
push 0x102ad234
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1005f3f0
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], 0
movups xmmword [ebp - 0x240], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005f2b0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.10056580
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 1
call fcn.1005f050
mov ecx, dword [ebp - 0x22c]
mov byte [ebp - 0x241], al
cmp ecx, 7
jbe 0x1005f420
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005f410
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f428
jmp 0x1005f410
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [0x102d1338], 0x10
je 0x1005f3f0
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], 0
movups xmmword [ebp - 0x240], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005f370
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.10056580
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0
call fcn.1005f050
mov ecx, dword [ebp - 0x22c]
mov byte [ebp - 0x241], al
cmp ecx, 7
jbe 0x1005f3ec
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005f3dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f428
push ecx
push edx
call fcn.1010693f
mov al, byte [ebp - 0x241]
add esp, 8
test al, al
jne 0x1005f424
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101064d2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push ecx
push edx
call fcn.1010693f
mov al, byte [ebp - 0x241]
add esp, 8
test al, al
je 0x1005f3f0
mov al, 1
jmp 0x1005f3f2
call fcn.1013823f
int3