Function at 0x421e40
Capabilities:
Create thread
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x479eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x1c], ebp
push str.CDeviceDetect::UpdateUMS
mov dword [esp + 0x64], 2
call fcn.00403170
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.00410190
add esp, 0xc
test eax, eax
jne 0x421ea4
xor al, al
jmp 0x421eb1
lea edx, [esp + 0x20]
push edx
call fcn.004101f0
add esp, 4
mov edx, dword [0x48337c]
mov ecx, dword [str..X:]
cbw
movzx esi, ax
mov eax, dword [0x483380]
mov dword [esp + 0x4c], eax
mov eax, dword [0x483374]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x6c]
sub eax, 0x8000
mov dword [esp + 0x48], edx
mov edx, dword [0x483370]
mov dword [esp + 0x44], ecx
mov cx, word [0x483384]
mov dword [esp + 0x3c], edx
mov word [esp + 0x50], cx
mov word [esp + 0x4c], si
mov word [esp + 0x3c], si
je 0x421f78
sub eax, 4
jne 0x42246c
lea ecx, [esp + 0x20]
call fcn.00410d80
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 9
mov dword [esp + 0x34], 3
call fcn.00404460
mov ebx, 7
push ebx
push 0x482628
lea ecx, [esp + 0x2c]
call fcn.004028b0
push ebx
push 0x482a1c
lea ecx, [esp + 0x30]
call fcn.004028b0
push 0
push 0x8004
lea edx, [esp + 0x28]
push edx
mov ecx, ebp
call fcn.0041f5d0
lea ecx, [esp + 0x20]
call fcn.00410de0
jmp 0x42246c
mov ecx, dword [esp + 0x68]
cmp dword [ecx - 0xc], 0
jl 0x421fce
push str.CDROM
push ecx
call dword [sym.imp.MSVCR90.dll_wcsstr]
mov ecx, dword [esp + 0x70]
add esp, 8
test eax, eax
je 0x421fa6
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jg 0x422269
cmp dword [ecx - 0xc], 0
jl 0x421fce
push 0x4867d0
push ecx
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x421fce
sub eax, dword [esp + 0x68]
sar eax, 1
cmp eax, 0xffffffff
jg 0x422269
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x42246c
lea ecx, [esp + 0x3c]
push ecx
push str.DriveLetter___s
call fcn.00403170
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00410d80
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 6
mov dword [esp + 0x34], 3
call fcn.00404460
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.00416480
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
mov ebx, 7
push edx
mov byte [esp + 0x68], bl
call fcn.00402410
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.0041a690
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 8
call fcn.00408420
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call fcn.00404460
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x2c]
call fcn.00404460
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00402410
call fcn.0041ac90
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00402410
call fcn.0041add0
movzx eax, ax
mov ecx, 0x5000
add esp, 4
cmp ax, cx
jb 0x4220ba
mov edx, 0x5aff
cmp ax, dx
jbe 0x42211c
mov eax, dword [esp + 0x68]
push eax
call fcn.00454a10
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test eax, eax
je 0x4221c1
mov esi, ebx
mov dword [esp + 0x30], esi
call edi
push eax
push str.ScsiCmdCallCheck_ERROR____d
call fcn.00403170
add esp, 8
cmp esi, ebx
je 0x4221f8
lea edx, [esp + 0x44]
push edx
call fcn.00454a10
add esp, 4
test eax, eax
je 0x4221f8
mov dword [esp + 0x30], ebx
call edi
push eax
push str.ScsiCmdCallCheck_ERROR____d
call fcn.00403170
add esp, 8
mov eax, dword [esp + 0x70]
test eax, eax
je 0x42222e
mov esi, dword [esp + 0x24]
cmp dword [esi - 0xc], 0
jl 0x42222e
mov edi, dword [sym.imp.MSVCR90.dll_wcsstr]
push eax
push esi
call edi
add esp, 8
test eax, eax
je 0x42222e
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x42222e
mov eax, dword [esp + 0x74]
test eax, eax
je 0x42222e
mov esi, dword [esp + 0x28]
cmp dword [esi - 0xc], 0
jl 0x42222e
push eax
push esi
call edi
add esp, 8
test eax, eax
je 0x42222e
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x42222e
push 0
push 0x8000
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.0041f5d0
lea ecx, [esp + 0x14]
call fcn.00450df0
lea ecx, [esp + 0x18]
call fcn.00450df0
lea ecx, [esp + 0x20]
call fcn.00410de0
jmp 0x42246c
call edi
push eax
push str.ScsiCmdCallCheck_ERROR____d
call fcn.00403170
mov esi, dword [esp + 0x38]
add esp, 8
cmp esi, ebx
je 0x4220db
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00454a10
add esp, 4
test eax, eax
je 0x4220db
mov esi, ebx
mov dword [esp + 0x30], esi
call edi
push eax
push str.ScsiCmdCallCheck_ERROR____d
call fcn.00403170
add esp, 8
cmp esi, ebx
je 0x42210c
lea eax, [esp + 0x44]
push eax
call fcn.00454a10
add esp, 4
test eax, eax
je 0x42210c
mov dword [esp + 0x30], ebx
jmp 0x42211c
lea ecx, [esp + 0x14]
call fcn.00450df0
lea ecx, [esp + 0x18]
call fcn.00450df0
lea ecx, [esp + 0x20]
call fcn.00410de0
lea ecx, [esp + 0x68]
call fcn.00450df0
lea ecx, [esp + 0x70]
call fcn.00450df0
lea ecx, [esp + 0x74]
call fcn.00450df0
jmp 0x4224de
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x4a7038
call fcn.00403480
push 0x5c
mov ecx, 0x4a7038
call fcn.00411150
lea eax, [esp + 0x3c]
push eax
push str._szVolumeTypePath___s
call fcn.00403170
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, 0x4a743c
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov ecx, dword [0x4a7038]
push ecx
lea edx, [esp + 0x3c]
push str._sSamsungKiesInstaller.ini
push edx
mov byte [esp + 0x6c], 3
call fcn.00402e80
mov esi, dword [esp + 0x44]
push esi
push str._strInstallerCfgPath___s
call fcn.00403170
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x422336
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._open_error____d_
call fcn.00403170
lea eax, [esi - 0x10]
add esp, 8
mov byte [esp + 0x60], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42246c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42246c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._SamsungKiesInstaller.ini_file_exist
call fcn.00403170
lea ebp, [esi - 0x10]
mov dword [esp + 0x38], esp
mov edi, esp
push ebp
call fcn.00401520
mov ebx, dword [esp + 0x24]
add esp, 4
lea ecx, [esp + 0x18]
add eax, 0x10
push ecx
mov ecx, ebx
mov dword [edi], eax
call fcn.00416760
mov edx, dword [esp + 0x14]
push edx
push str._strLabel_s
mov byte [esp + 0x68], 4
call fcn.00403170
add esp, 4
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00406310
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.00416b00
mov edx, dword [esp + 0x18]
push edx
push str._strVolumeLabel_s
mov byte [esp + 0x68], 5
call fcn.00403170
add esp, 8
lea ecx, [esp + 0x18]
call fcn.004110f0
mov esi, dword [eax]
lea ecx, [esp + 0x14]
call fcn.004110f0
mov edi, eax
test esi, esi
je 0x422403
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x422403
push esi
push eax
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x422403
sub eax, dword [edi]
sar eax, 1
jne 0x422403
push 0
push 0
push ebx
push 0x41c250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x60], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422428
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x60], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42244d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 2
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42246c
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x60], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422491
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4224b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4224de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004764f6
add esp, 0x50
ret 0x10