Function at 0x1003b010
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x10084a47
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100c6034]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 0xdc]
xor ebx, ebx
mov edi, dword [ebp + 0xd4]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
push edi
call fcn.1002c320
mov byte [ebp - 4], 1
call fcn.10029330
test eax, eax
je 0x1003b5e2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jle 0x1003b154
push 0x3f
push eax
call fcn.1005dc73
mov esi, eax
add esp, 8
test esi, esi
je 0x1003b154
sub esi, dword [edi]
sar esi, 1
test esi, esi
jle 0x1003b154
push esi
push ebx
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.1002be40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
push eax
call fcn.1002bf90
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003b0fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.1002be40
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 1
push eax
lea ecx, [ebp - 0x34]
call fcn.1002bf90
mov ebx, 1
mov dword [ebp - 0x18], ebx
and ebx, 0xfffffffe
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003b154
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5c
push dword [ebp - 0x1c]
call fcn.1005dd3a
mov ecx, dword [ebp - 0x1c]
add esp, 8
test eax, eax
je 0x1003b172
sub eax, ecx
sar eax, 1
jns 0x1003b224
mov esi, 0x100a621c
movzx eax, word [esi]
push eax
push ecx
call fcn.1005dd3a
mov ecx, dword [ebp - 0x1c]
add esp, 8
test eax, eax
je 0x1003b195
sub eax, ecx
sar eax, 1
jns 0x1003b224
add esi, 2
cmp esi, 0x100a6222
jl 0x1003b177
mov byte [ebp - 4], 8
lea eax, [ebp]
push eax
or ebx, 2
mov dword [ebp - 0x40], 0
push 0x64
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
xor esi, esi
nop
lea ebx, [ebp]
lea ebx, [ebx + esi*2]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1003b2f8
call fcn.10029330
test eax, eax
je 0x1003b5e2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x10]
push ebx
call fcn.1002b120
test al, al
jne 0x1003b2c9
test ebx, ebx
jne 0x1003b2a9
xor ecx, ecx
jmp 0x1003b2bf
push edi
lea ecx, [ebp - 0x28]
call fcn.1002bcd0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 0xf
mov ebx, dword [ebp + 0xd8]
test bl, bl
je 0x1003b261
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
movzx ecx, byte [ebp - 0x2c]
test eax, eax
mov edx, 1
cmovne ecx, edx
mov byte [ebp - 0x2c], cl
mov eax, dword [ebp - 0x24]
xor esi, esi
mov edi, eax
test edi, edi
jle 0x1003b549
test esi, esi
js 0x1003b5ec
cmp esi, eax
jge 0x1003b5ec
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
push ebx
lea eax, [eax + esi*4]
push eax
call fcn.1003b600
test eax, eax
je 0x1003b487
inc esi
cmp esi, edi
jge 0x1003b549
mov eax, dword [ebp - 0x24]
jmp 0x1003b270
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003b2b0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.1002b490
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
call fcn.1002bcd0
mov byte [ebp - 4], 8
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003b2f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, edi
jae 0x1003b30d
nop dword [eax]
cmp word [ebp + esi*2], 0
je 0x1003b30d
inc esi
cmp esi, edi
jb 0x1003b300
inc esi
cmp esi, edi
jb 0x1003b1d0
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
cmp esi, eax
je 0x1003b344
lea ecx, [ebp - 0x28]
call fcn.1002bc30
push 4
push dword [ebp - 0x3c]
call fcn.10061967
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, dword [ebp - 0x3c]
je 0x1003b359
mov dword [ebp - 0x20], eax
jmp 0x1003b359
test esi, esi
jle 0x1003b359
dec esi
lea ecx, [ebp - 0x28]
push esi
call fcn.1003e710
test esi, esi
jg 0x1003b348
mov eax, dword [ebp - 0x3c]
xor esi, esi
test eax, eax
jle 0x1003b387
nop
test esi, esi
js 0x1003b5ec
cmp esi, eax
jge 0x1003b5ec
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
lea eax, [eax + esi*4]
push eax
call fcn.1002bcd0
mov eax, dword [ebp - 0x3c]
inc esi
cmp esi, eax
jl 0x1003b360
and dword [ebp - 0x18], 0xfffffffd
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.1002bc30
mov eax, dword [ebp - 0x24]
xor esi, esi
mov ebx, eax
mov dword [ebp - 0x44], ebx
test ebx, ebx
jle 0x1003b22d
nop dword [eax]
test esi, esi
js 0x1003b5ec
cmp esi, eax
jge 0x1003b5ec
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax - 0x10]
lea edi, [eax - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x1003b3e8
cmp ecx, dword [edi]
jne 0x1003b3e8
lock inc dword [eax]
jmp 0x1003b417
mov eax, dword [ecx]
lea ebx, [edi + 4]
push 2
push dword [ebx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x1003b5f8
mov ecx, dword [ebx]
mov dword [edi + 4], ecx
lea ecx, [edi + 0x10]
mov edx, dword [ebx]
inc edx
push edx
push dword [ebp - 0x14]
call fcn.1002b3e0
mov ebx, dword [ebp - 0x44]
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push dword [eax - 0xc]
push eax
call fcn.1002ae70
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.1002ae70
cmp esi, dword [ebp - 0x24]
jge 0x1003b5ec
mov eax, dword [ebp - 0x28]
lea ecx, [eax + esi*4]
lea eax, [ebp - 0x10]
push eax
call fcn.1002bf90
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003b476
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, ebx
jge 0x1003b22d
mov eax, dword [ebp - 0x24]
jmp 0x1003b3b0
call fcn.1003e820
cmp byte [eax + 0x1c], 0
je 0x1003b545
call fcn.1003e820
mov esi, eax
call fcn.10029330
test eax, eax
je 0x1003b5e2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x10]
push 0xf
push str.File_was_found.
call fcn.1002ae70
call fcn.10029330
test eax, eax
je 0x1003b5e2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x14]
push 0
push 0x100a3438
call fcn.1002ae70
push ecx
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
sub esp, 8
call fcn.1003e900
mov byte [ebp - 4], 0x12
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003b527
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003b545
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x1003b54e
mov esi, 1
mov byte [ebp - 4], 3
cmp byte [ebp - 0x2c], 0
je 0x1003b56f
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
movzx ecx, byte [ebp - 0x2c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x2c], cl
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x34]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003b590
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1003b5ac
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1002bc30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.1005c4e7
lea esp, [ebp + 0xcc]
pop ebp
ret 0xc
push 0x80004005
call fcn.100269b0
push 1
push 0xc000008c
call fcn.100269d0
call fcn.1002b320
int3