Function at 0x43d8f0
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x47b235
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x55c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0x574]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58c]
mov ebp, dword [esp + 0x588]
mov dword [esp + 0x1c], eax
xor edi, edi
push str.CONNECTION_TYPE_UMS
mov dword [esp + 0x580], edi
call fcn.00403170
mov edx, dword [0x4a643c]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x4a643c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x584]
mov byte [esp + 0x57c], 1
cmp eax, edi
jne 0x43d987
push 0x80004003
call fcn.004671f0
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov edx, dword [esp + 0x38]
cmp edx, edi
je 0x43d9c6
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43d9a1
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.004028b0
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [0x4a643c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a643c
mov dword [esp + 0x28], edi
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x584]
mov byte [esp + 0x57c], 2
cmp esi, edi
jne 0x43d9fe
push 0x80004003
call fcn.004671f0
push str.DRIVE
lea ecx, [esp + 0x30]
call fcn.004068b0
mov eax, dword [eax]
mov byte [esp + 0x57c], 3
cmp eax, edi
je 0x43da1e
mov eax, dword [eax]
jmp 0x43da20
xor eax, eax
mov ecx, dword [esi]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x68]
push esi
call eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x57c], 2
cmp eax, edi
je 0x43da78
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, edi
jne 0x43da78
cmp esi, edi
je 0x43da78
mov eax, dword [esi]
cmp eax, edi
je 0x43da5f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x43da6f
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x28]
cmp edx, edi
je 0x43dab2
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43da85
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x2c]
call fcn.004028b0
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x28], edi
cmp dword [ebx - 0xc], edi
jge 0x43dac1
push 0x80070057
call fcn.00401100
movzx ebx, word [ebx]
lea edx, [esp + 0x30]
push ebx
push edx
mov dword [esp + 0x34], ebx
call fcn.0041cb50
mov ecx, eax
call fcn.00415e20
mov eax, dword [esp + 0x30]
push ecx
mov dword [esp + 0x38], esp
mov edi, esp
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x3c], esp
mov esi, esp
push eax
mov byte [esp + 0x588], 4
call fcn.004014f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
push edi
mov byte [esp + 0x588], 5
call fcn.0041cb50
mov ecx, eax
mov byte [esp + 0x588], 4
call fcn.00419e20
lea eax, [esp + 0x24]
push eax
call fcn.00451190
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0x580], 6
call fcn.00404450
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x57c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43db67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00404450
push ebx
call fcn.004293f0
add esp, 4
test ax, ax
je 0x43dc35
push 0
push 0x480de0
mov ecx, ebp
call fcn.004028b0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x57c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43dbbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x57c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43dbe5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x57c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43dc0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x584]
mov dword [esp + 0x57c], 0xffffffff
test eax, eax
je 0x43dc2b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x15
jmp 0x43e773
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
mov edi, dword [sym.imp.MSVCR90.dll_wcsstr]
test eax, eax
jl 0x43dd1e
mov ecx, dword [esp + 0x18]
push str.VIRTUAL_MP3
push ecx
call edi
add esp, 8
test eax, eax
je 0x43dd1e
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, 0xffffffff
je 0x43dd1e
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jge 0x43dc7f
or esi, 0xffffffff
jmp 0x43dc9b
push str.VIRTUAL_MP3
push eax
call edi
add esp, 8
test eax, eax
jne 0x43dc93
or esi, 0xffffffff
jmp 0x43dc9b
sub eax, dword [esp + 0x18]
sar eax, 1
mov esi, eax
push str.VIRTUAL_MP3:
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x18]
add esi, eax
mov eax, dword [edx - 0xc]
js 0x43dcd1
cmp esi, eax
jg 0x43dcd1
mov eax, edx
lea ecx, [eax + esi*2]
push 0x4853c0
push ecx
call edi
add esp, 8
test eax, eax
je 0x43dcd1
sub eax, dword [esp + 0x18]
sar eax, 1
jmp 0x43dcd4
or eax, 0xffffffff
sub eax, esi
push eax
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
call fcn.00407c70
push eax
mov ecx, ebp
mov byte [esp + 0x580], 7
call fcn.00404450
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x57c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43dd1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp]
cmp dword [ecx - 0xc], 0
jne 0x43dd3f
push ebp
push ebx
call fcn.00455050
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x24]
push edx
call fcn.00404450
mov eax, dword [ebp]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x43def6
push str.Identify____NormalUMS___Mode_Inquery_command
call fcn.00403170
add esp, 4
test bx, bx
je 0x43def6
push 0x200
lea ecx, [esp + 0x18c]
xor eax, eax
push ecx
lea edx, [esp + 0x148]
push edx
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], eax
push ebx
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], eax
mov byte [esp + 0x150], 0x12
mov byte [esp + 0x154], 0xc0
call fcn.004545a0
add esp, 0x10
cmp eax, 1
jne 0x43def6
cmp byte [esp + 0x18d], 0
je 0x43def6
mov ecx, dword [esp + 0x19c]
mov edx, dword [esp + 0x1a0]
mov eax, dword [esp + 0x198]
mov dword [esp + 0x154], ecx
mov cl, byte [esp + 0x1a6]
mov dword [esp + 0x158], edx
mov dword [esp + 0x150], eax
mov ax, word [esp + 0x1a4]
lea edx, [esp + 0x150]
mov byte [esp + 0x15e], cl
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x163], 0
mov word [esp + 0x160], ax
call fcn.00402070
mov eax, dword [eax]
push eax
mov ecx, ebp
mov byte [esp + 0x580], 8
call fcn.00403480
mov eax, dword [esp + 0x3c]
mov ebx, dword [sym.imp.MSVCR90.dll_free]
lea ecx, [esp + 0x40]
mov byte [esp + 0x57c], 4
cmp eax, ecx
je 0x43de59
push eax
call ebx
add esp, 4
mov byte [esp + 0x187], 0
mov ecx, 9
lea esi, [esp + 0x1c0]
lea edi, [esp + 0x160]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [esp + 0x160]
push edx
lea ecx, [esp + 0x40]
movsb byte es:[edi], byte [esi]
call fcn.00402070
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push eax
mov byte [esp + 0x580], 9
call fcn.00403480
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
mov byte [esp + 0x57c], 4
cmp eax, ecx
je 0x43deb8
push eax
call ebx
add esp, 4
push 0x20
mov ecx, ebp
call fcn.00410b00
mov esi, dword [esp + 0x1c]
push 0x20
mov ecx, esi
call fcn.00410b00
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
jne 0x43dee2
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00404450
mov ecx, dword [esi]
mov edx, dword [ebp]
push ecx
push edx
push str.ScsiCmd_:_Model_s__SN_s
call fcn.00403170
add esp, 0xc
mov eax, dword [ebp]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x43e03b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push ecx
push ebp
push edx
call fcn.00439940
add esp, 0xc
test eax, eax
je 0x43e03b
push str.Identify____SamsungGSMUMS
call fcn.00403170
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
add esp, 4
cmp dword [eax - 0xc], 0
jne 0x43dfbc
lea edx, [esp + 0x24]
push edx
call fcn.00404450
mov eax, dword [esp + 0x584]
test eax, eax
jne 0x43df5b
push 0x80004003
call fcn.004671f0
push str.TRUE
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00406820
mov esi, eax
push str.TEMPORARY_IMEI
lea ecx, [esp + 0x24]
mov byte [esp + 0x580], 0xa
call fcn.00406820
mov ecx, dword [esi]
mov byte [esp + 0x57c], 0xb
test ecx, ecx
je 0x43df95
mov ecx, dword [ecx]
jmp 0x43df97
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x43dfa1
mov eax, dword [eax]
jmp 0x43dfa3
xor eax, eax
mov edx, dword [edi]
push ecx
push eax
mov eax, dword [edx + 0x6c]
push edi
call eax
lea ecx, [esp + 0x20]
call fcn.00408700
lea ecx, [esp + 0x14]
jmp 0x43e02e
mov edi, dword [esp + 0x584]
test edi, edi
jne 0x43dfd1
push 0x80004003
call fcn.004671f0
push 0x488374
lea ecx, [esp + 0x24]
call fcn.00406820
mov esi, eax
push str.TEMPORARY_IMEI
lea ecx, [esp + 0x18]
mov byte [esp + 0x580], 0xc
call fcn.00406820
mov ecx, dword [esi]
mov byte [esp + 0x57c], 0xd
test ecx, ecx
je 0x43e009
mov ecx, dword [ecx]
jmp 0x43e00b
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x43e015
mov eax, dword [eax]
jmp 0x43e017
xor eax, eax
mov edx, dword [edi]
push ecx
push eax
mov eax, dword [edx + 0x6c]
push edi
call eax
lea ecx, [esp + 0x14]
call fcn.00408700
lea ecx, [esp + 0x20]
mov byte [esp + 0x57c], 4
call fcn.00408700
mov ecx, dword [ebp]
push ecx
push str.ModelName:__s
call fcn.00403170
mov edx, dword [ebp]
add esp, 8
cmp dword [edx - 0xc], 0
jne 0x43e13d
mov esi, dword [esp + 0x584]
test esi, esi
jne 0x43e06e
push 0x80004003
call fcn.004671f0
push str.ModelName
lea ecx, [esp + 0x18]
call fcn.004068b0
mov eax, dword [eax]
mov byte [esp + 0x57c], 0xe
test eax, eax
je 0x43e08e
mov eax, dword [eax]
jmp 0x43e090
xor eax, eax
mov ecx, dword [esi]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x68]
push esi
call eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x57c], 4
call fcn.00408700
mov eax, dword [esp + 0x28]
test eax, eax
je 0x43e0ca
push eax
mov ecx, ebp
call fcn.00403480
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esp + 0x584]
test esi, esi
jne 0x43e0df
push 0x80004003
call fcn.004671f0
push 0x481564
lea ecx, [esp + 0x18]
call fcn.004068b0
mov eax, dword [eax]
mov byte [esp + 0x57c], 0xf
test eax, eax
je 0x43e0ff
mov eax, dword [eax]
jmp 0x43e101
xor eax, eax
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
lea ecx, [esp + 0x28]
push ecx
push eax
push esi
call edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x57c], 4
call fcn.00408700
mov eax, dword [esp + 0x28]
test eax, eax
je 0x43e13d
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00403480
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
mov ebx, dword [sym.imp.MSVCR90.dll_wcsstr]
jl 0x43e166
push str.CARD
push eax
call ebx
add esp, 8
test eax, eax
je 0x43e166
sub eax, dword [ebp]
sar eax, 1
jns 0x43e21a
mov edx, dword [0x4a643c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a643c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov ecx, dword [ebp]
push ecx
lea edx, [esp + 0x24]
push str._s_CARD
push edx
mov byte [esp + 0x588], 0x10
call fcn.00402e80
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00408200
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
test esi, esi
je 0x43e1f4
cmp dword [edi - 0xc], 0
jl 0x43e1c9
push esi
push edi
call ebx
add esp, 8
test eax, eax
je 0x43e1c9
sub eax, edi
sar eax, 1
test eax, eax
jg 0x43e1e8
mov eax, dword [esp + 0x30]
cmp dword [eax - 0xc], 0
jl 0x43e1f4
push esi
push eax
call ebx
add esp, 8
test eax, eax
je 0x43e1f4
sub eax, dword [esp + 0x30]
sar eax, 1
test eax, eax
jle 0x43e1f4
push 0x487640
mov ecx, ebp
call fcn.00404610
lea eax, [esi - 0x10]
mov byte [esp + 0x57c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e21e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x43e21e
mov edi, dword [esp + 0x18]
push edi
push str.HardwareID:__s
call fcn.00403170
mov ecx, dword [ebp]
push ecx
push str.ModelName:__s
call fcn.00403170
mov edx, dword [ebp]
add esp, 0x10
cmp dword [edx - 0xc], 0
jne 0x43e46d
push str.Identify____NormalUMS
call fcn.00403170
add esp, 4
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43e326
push 0xb93
push str.CDeviceManager::NomalUMSIdentify
push str._s_CreateFile_Error__d
call fcn.00403170
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x57c], 2
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e2b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x57c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e2da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x57c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e2fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x584]
mov dword [esp + 0x57c], 0xffffffff
cmp eax, ebx
je 0x43e31c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 7
jmp 0x43e773
xor eax, eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
push 0x3e8
mov dword [esp + 0x14c], eax
lea eax, [esp + 0x18c]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x150], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x3e8
lea edx, [esp + 0x194]
push edx
push 0xc
lea eax, [esp + 0x154]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43e416
mov ecx, dword [esp + 0x194]
lea edx, [esp + ecx + 0x188]
push edx
push str.vendorid___s
call fcn.0042c350
mov eax, dword [esp + 0x1a0]
lea ecx, [esp + eax + 0x190]
push ecx
push str.productid___s
call fcn.0042c350
mov edx, dword [esp + 0x1a8]
add esp, 0x10
lea eax, [esp + edx + 0x188]
push eax
mov ecx, ebp
call fcn.004085e0
mov ecx, dword [ebp]
cmp dword [ecx - 0xc], ebx
jne 0x43e3ff
mov edx, dword [esp + 0x194]
lea eax, [esp + edx + 0x188]
push eax
mov ecx, ebp
call fcn.004085e0
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00404450
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43e46f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IOCTL_STORAGE_QUERY_PROPERTY_Error:_d
call fcn.00403170
add esp, 8
lea ecx, [esp + 0x30]
call fcn.004023d0
lea ecx, [esp + 0x24]
call fcn.004023d0
lea ecx, [esp + 0x18]
call fcn.004023d0
mov eax, dword [esp + 0x584]
mov dword [esp + 0x57c], 0xffffffff
cmp eax, ebx
je 0x43e463
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 0xa
jmp 0x43e773
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
push ebp
push ecx
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x40], esp
mov esi, esp
push eax
mov dword [esp + 0x44], eax
call fcn.004014f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00434d60
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
add esp, 0xc
cmp ecx, ebx
je 0x43e6c9
test ecx, ecx
jl 0x43e6c9
push 0x4885f8
push eax
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x43e6c9
sub eax, dword [ebp]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jle 0x43e6c9
mov edx, dword [0x4a643c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a643c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x18]
mov bl, 0x11
push edx
mov ecx, ebp
mov byte [esp + 0x584], bl
call fcn.004083a0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x580], 0x12
call fcn.00404450
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x57c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e53f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00407d30
push eax
mov ecx, ebp
mov byte [esp + 0x580], 0x13
call fcn.00404450
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x57c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43e583
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push 0x4842e8
push ecx
call fcn.00404100
add esp, 8
test al, al
je 0x43e612
mov eax, dword [esp + 0x584]
test eax, eax
jne 0x43e5ae
push 0x80004003
call fcn.004671f0
push str.false
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.004068b0
mov esi, eax
push str.IsInternalMemory
lea ecx, [esp + 0x18]
mov byte [esp + 0x580], 0x14
call fcn.004068b0
mov ecx, dword [esi]
mov byte [esp + 0x57c], 0x15
test ecx, ecx
je 0x43e5e8
mov ecx, dword [ecx]
jmp 0x43e5ea
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x43e5f4
mov eax, dword [eax]
jmp 0x43e5f6
xor eax, eax
mov edx, dword [edi]
push ecx
push eax
mov eax, dword [edx + 0x6c]
push edi
call eax
lea ecx, [esp + 0x14]
call fcn.00408700
lea ecx, [esp + 0x2c]
jmp 0x43e69c
lea ecx, [esp + 0x1c]
push 0x482038
push ecx
call fcn.00404100
add esp, 8
test al, al
je 0x43e6a1
mov eax, dword [esp + 0x584]
test eax, eax
jne 0x43e63d
push 0x80004003
call fcn.004671f0
push str.true
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.004068b0
mov esi, eax
push str.IsInternalMemory
lea ecx, [esp + 0x30]
mov byte [esp + 0x580], 0x16
call fcn.004068b0
mov ecx, dword [esi]
mov byte [esp + 0x57c], 0x17
test ecx, ecx
je 0x43e677
mov ecx, dword [ecx]
jmp 0x43e679
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x43e683
mov eax, dword [eax]
jmp 0x43e685
xor eax, eax
mov edx, dword [edi]
push ecx
push eax
mov eax, dword [edx + 0x6c]
push edi
call eax
lea ecx, [esp + 0x2c]
call fcn.00408700
lea ecx, [esp + 0x20]
call fcn.00408700
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x57c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e6c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp]
cmp dword [ecx - 0xc], 0
jne 0x43e6de
push str.Mass_Storage
mov ecx, ebp
call fcn.00403480
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x57c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43e706
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x57c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e72e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
mov byte [esp + 0x57c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e753
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x584]
mov dword [esp + 0x57c], 0xffffffff
test eax, eax
je 0x43e771
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x574]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x55c]
xor ecx, esp
call fcn.00475d76
add esp, 0x56c
ret