Function at 0x43b630
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x4ad248
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4ecba0]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], 0
call fcn.0046d74a
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x43b68c
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
fldz
lea ecx, [ebp - 0x38]
fstp qword [ebp - 0x44]
mov dword [ebp - 4], esi
push ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x1a], 0
mov byte [ebp - 4], 1
call fcn.0048f656
add esp, 4
push 0x200
lea edx, [ebp]
push 0
push edx
mov byte [ebp - 0x18], 0x7f
mov byte [ebp - 0x17], 0x7f
call fcn.0048f850
mov al, 1
add esp, 0xc
mov byte [ebp - 0x19], al
cmp al, 0x1a
jae 0x43b7e6
movzx eax, al
lea edi, [eax + 0x43]
push edi
lea eax, [ebp - 0x20]
push 0x4bba98
push eax
call fcn.00402d80
mov ebx, dword [ebp - 0x20]
add esp, 0xc
push 0x200
lea ecx, [ebp]
push ecx
push ebx
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x43b7db
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b725
push 0
push 0
push 3
push 0
push 3
sub eax, edx
push SysReAllocString
lea edx, [ebp]
push edx
mov byte [ebp + eax - 1], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, 0xffffffff
je 0x43b79d
push 0
lea eax, [ebp - 0x3c]
push eax
push 0x20
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push 0x560000
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43b7cb
mov bl, byte [ebp + 0x20c]
movsx edx, bl
cmp edx, dword [ebp - 0x5c]
jne 0x43b7cb
push edi
push 0x4bbd74
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.00490173
add esp, 0x10
mov byte [ebp - 0x11], 1
jmp 0x43b7ec
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movsx ecx, byte [ebp + 0x20c]
push eax
push ebx
push ecx
push 0x224e
push str.CAsmtUSBDev::vGetLogicalAddressFromPhysicalAddress
push 0x4c54c0
mov dword [ebp - 0x28], eax
call fcn.0044b7f0
add esp, 0x18
test esi, esi
je 0x43b7db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x24], esi
inc byte [ebp - 0x19]
mov al, byte [ebp - 0x19]
jmp 0x43b6e0
mov bl, byte [ebp + 0x20c]
cmp byte [ebp + 0x210], 0
je 0x43b8fb
lea edx, [ebp - 0x30]
push edx
call fcn.0048f656
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push ecx
push edx
push eax
call fcn.00491308
fcomp qword [0x4c54b8]
add esp, 0x14
fnstsw ax
test ah, 0x41
je 0x43b86d
cmp byte [ebp - 0x18], 0x7f
jne 0x43b86d
mov ecx, dword [ebp - 0x28]
fld qword [ebp - 0x44]
mov edx, dword [ebp - 0x20]
push ecx
push edx
movsx eax, bl
push eax
sub esp, 8
mov byte [ebp - 0x1a], 1
fstp qword [esp]
push 0x2267
push str.CAsmtUSBDev::vGetLogicalAddressFromPhysicalAddress
push str._s:_d:_:_Get_Disk_Letter_Retry__time_02f__ucPhysicalAddress_:__d___strLogicalAddress_:__s___dwErrorCode__d
call fcn.0044b7f0
add esp, 0x20
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43b6c0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x30]
push edx
push eax
push ecx
call fcn.00491308
fcomp qword [0x4c54b8]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x43b905
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
push edx
push eax
movsx ecx, bl
push ecx
push 0x2262
push str.CAsmtUSBDev::vGetLogicalAddressFromPhysicalAddress
push str._s:_d:_:_Wait_Disk_Letter_Time_Out__ucPhysicalAddress_:__d___strLogicalAddress_:__s___dwErrorCode__d
call fcn.0044b650
add esp, 0x18
jmp 0x43b905
cmp byte [ebp - 0x1a], 0
jne 0x43b6c0
test esi, esi
je 0x43b910
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x11], 0
jne 0x43b91e
mov byte [ebp - 0x18], 0x7f
mov byte [ebp - 0x17], 0x7f
mov eax, dword [ebp - 0x20]
mov bl, byte [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43b947
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.0048f35c
add ebp, 0x204
mov esp, ebp
pop ebp
ret 8