Function at 0x10023628
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x40]
push esi
test al, 8
jne 0x1002397a
and eax, 0xfffffffb
or eax, 8
lea esi, [ebx + 0x10]
mov ecx, dword [esi]
mov dword [ebx + 0x40], eax
cmp dword [ecx + 8], 0
je 0x1002397d
mov eax, section..data
xor ecx, ecx
mov dword [ebp - 0xc], eax
inc ecx
lock xadd dword [eax], ecx
push 1
lea eax, [ebp - 4]
push eax
mov ecx, esi
mov dword [ebp - 4], str..lnk
call fcn.10002fb7
push esi
test al, al
je 0x100236d4
lea eax, [ebp - 4]
push eax
call fcn.10020fbf
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.10002b32
mov eax, dword [ebp - 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100236a9
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
jne 0x100236dc
mov ebx, dword [ebx + 0x40]
shr ebx, 2
and bl, 1
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100236cd
push dword [ebp - 0xc]
call fcn.10002b2d
pop ecx
mov al, bl
jmp 0x10023983
lea ecx, [ebp - 0xc]
call fcn.10002b32
push edi
lea eax, [ebp - 0xc]
lea edi, [ebp - 4]
call fcn.10021c1a
push eax
lea ecx, [ebp - 0xc]
call fcn.10002b32
mov eax, dword [ebp - 4]
or esi, 0xffffffff
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x10023708
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x34]
cmp eax, esi
je 0x10023750
push eax
call fcn.1004b385
pop ecx
cmp eax, esi
je 0x1002395f
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1002395f
mov eax, dword [ebp - 0x44]
or dword [ebx + 0x40], 4
mov dword [ebx + 0x30], eax
jmp 0x1002395f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.10021e7c
pop ecx
pop ecx
mov ecx, eax
call fcn.100043cf
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 4]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x10023784
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
cmp dword [ebx + 0x30], esi
jne 0x10023852
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x100237a1
cmp eax, 0x20
jne 0x10023852
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.10006e01
pop ecx
xor esi, esi
pop ecx
inc esi
jmp 0x100237bb
push esi
call fcn.10005342
push 0x5c
pop eax
mov word [ebp - 6], ax
push esi
lea eax, [ebp - 6]
push eax
lea ecx, [ebp - 4]
call fcn.1000309a
lea ecx, [ebp - 4]
test al, al
jne 0x100237b5
push 0x3a
pop eax
mov word [ebp - 6], ax
push esi
lea eax, [ebp - 6]
push eax
call fcn.1000309a
test al, al
jne 0x1002383b
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10021e7c
pop ecx
pop ecx
mov ecx, eax
call fcn.100043cf
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10023826
push dword [ebp - 8]
call fcn.10002b2d
pop ecx
cmp esi, 0xffffffff
je 0x1002383b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x294]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 4]
or esi, 0xffffffff
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x10023852
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
xor eax, eax
cmp dword [ebx + 0x30], esi
setne al
shl eax, 2
xor eax, dword [ebx + 0x40]
and eax, 4
xor dword [ebx + 0x40], eax
test byte [ebx + 0x40], 4
jne 0x1002395f
lea esi, [ebp - 0xc]
call fcn.10020bf4
test al, al
je 0x100238c0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov ax, word [eax]
mov word [ebp - 6], ax
lea eax, [ebp - 2]
push eax
lea ecx, [ebp - 6]
call fcn.1000243d
movzx ecx, word [eax]
xor eax, eax
sub ecx, 0x41
inc eax
shl eax, cl
test esi, eax
je 0x1002395f
or dword [ebx + 0x40], 4
mov dword [ebx + 0x30], 0x14
jmp 0x1002395f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.10006e01
pop ecx
pop ecx
push 1
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0x100acb48
call fcn.10002e74
test al, al
je 0x1002394a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ax, word [eax]
push 1
push 2
mov word [ebp - 8], ax
push dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.1000411a
test eax, eax
jle 0x10023933
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xc]
mov cx, word [ecx]
push 1
inc eax
mov word [ebp - 8], cx
push eax
push dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.1000411a
test eax, eax
jle 0x10023933
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 8]
dec ecx
cmp eax, ecx
jne 0x1002394a
lea ecx, [ebp - 4]
call fcn.1002353f
test al, al
je 0x1002394a
or dword [ebx + 0x40], 4
mov dword [ebx + 0x30], 0x10
mov eax, dword [ebp - 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1002395f
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp - 0xc]
or ecx, 0xffffffff
pop edi
lock xadd dword [eax], ecx
jne 0x1002397a
push dword [ebp - 0xc]
call fcn.10002b2d
pop ecx
mov eax, dword [ebx + 0x40]
shr eax, 2
and eax, 1
pop esi
pop ebx
leave
ret