Function at 0x105392d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x10ae1e0]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push edi
xor edi, edi
mov dword [eax], edi
mov eax, dword [ebx + 0xc]
xor esi, esi
test al, 0xc0
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
jne 0x1053965
test ah, 1
je 0x1053985
push 1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
jne 0x1053985
push 0x61c9
push dword [ebp + 0x1c]
call fcn.0104a072
jmp 0x1053b7e
push 0x460
call fcn.0104a174
mov esi, eax
cmp esi, edi
pop ecx
mov dword [ebp - 0xc], esi
je 0x1053b71
mov dword [esi], 1
mov dword [esi + 4], 0x80004005
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push dword [ebp + 8]
mov dword [esi + 8], eax
call fcn.0104a3ae
test eax, eax
pop ecx
jne 0x10539c7
push 0x61b2
jmp 0x1053978
lea eax, [ebp - 0x21c]
push eax
mov edi, 0x104
push edi
push dword [ebp + 8]
call fcn.0104b688
add esp, 0xc
test eax, eax
je 0x1053be3
cmp eax, edi
ja 0x1053be3
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
test eax, eax
pop ecx
pop ecx
je 0x1053a08
and word [eax + 2], 0
lea eax, [ebp - 0x21c]
push eax
call fcn.0104b8fd
cmp eax, 4
pop ecx
jne 0x1053a33
push dword [ebp + 8]
call fcn.0104ba32
cmp eax, 0xffffffff
pop ecx
je 0x1053a33
test al, 1
jne 0x1053a33
mov dword [ebp - 0x10], 0xc
push dword [ebp + 0x1c]
lea eax, [esi + 0xc]
push dword [ebp + 0x18]
push eax
mov eax, dword [ebx + 0xc]
push dword [ebx + 0xb4]
or eax, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.0104a99c
mov edi, eax
add esp, 0x18
test edi, edi
jl 0x1053c07
push dword [ebp + 0x1c]
lea eax, [esi + 0x20]
push 0x104
push eax
push dword [ebp + 8]
call fcn.0104a35a
mov edi, eax
add esp, 0x10
test edi, edi
jl 0x1053c07
call fcn.0104ba94
cmp eax, 1
jne 0x1053b2a
lea eax, [ebp - 0x21c]
push eax
call fcn.0104a86c
test eax, eax
pop ecx
jne 0x1053aa9
push 0x61b1
jmp 0x1053978
xor edi, edi
push edi
push edi
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x1053ad3
push dword [ebp + 0x1c]
call fcn.0104a3eb
jmp 0x1053b7f
test byte [ebp + 0xc], 8
je 0x1053b2c
or dword [esi + 0x438], 2
test byte [ebx + 0xd], 0x20
je 0x1053b0a
mov eax, dword [ebx + 0xb4]
cmp eax, edi
je 0x1053b0a
push dword [ebp + 0x1c]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.0104a83d
mov edi, eax
add esp, 0xc
test edi, edi
jl 0x1053c07
push dword [ebp + 0x1c]
lea eax, [esi + 0x434]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.0104a77b
mov edi, eax
add esp, 0xc
test edi, edi
jl 0x1053c07
xor edi, edi
push dword [ebp + 0x1c]
lea eax, [ebp - 0x630]
push eax
push 0x208
push edi
lea eax, [esi + 0x20]
push edi
push eax
call fcn.0104a24f
mov edi, eax
add esp, 0x18
test edi, edi
jl 0x1053c07
lea eax, [ebp - 0x630]
push eax
push 0
push dword [esi + 0x434]
call fcn.0104b49e
add esp, 0xc
test eax, eax
mov dword [esi + 0x10], eax
jne 0x1053b84
push 0x8007000e
push dword [ebp + 0x1c]
call fcn.0104a020
pop ecx
pop ecx
mov edi, eax
jmp 0x1053c03
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x10]
push dword [ebp + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
push dword [eax]
push dword [ebp + 0x10]
push ebx
push esi
call fcn.010532dd
mov edi, eax
add esp, 0x14
test edi, edi
jl 0x1053bf4
mov eax, dword [esi + 0x440]
add eax, 4
push 0x100cb38
push eax
call fcn.01049cd9
test eax, eax
pop ecx
pop ecx
jne 0x1053bcf
push 0x61b3
jmp 0x1053be8
mov eax, dword [ebp + 0x14]
and dword [esi + 4], 0
test eax, eax
je 0x1053bf4
mov dword [eax], esi
xor esi, esi
mov dword [ebp - 0xc], esi
jmp 0x1053bf4
push 0x61b2
push dword [ebp + 0x1c]
call fcn.0104a072
pop ecx
pop ecx
mov edi, eax
cmp dword [ebp - 8], 0
je 0x1053c03
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test edi, edi
jge 0x1053c2e
test esi, esi
je 0x1053c1d
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1053c1d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0xc], 0
mov eax, dword [ebp + 0x18]
cmp dword [eax], 1
jne 0x1053c2e
push dword [ebp + 8]
call fcn.0104b8a0
pop ecx
lea eax, [ebp - 0xc]
push eax
call fcn.01053820
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01028eec
leave
ret