Function at 0x4212f0
Capabilities:
Create thread
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4796c0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
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.0040fa70
add esp, 0xc
test eax, eax
jne 0x421354
xor al, al
jmp 0x421361
lea edx, [esp + 0x20]
push edx
call fcn.0040fad0
add esp, 4
mov edx, dword [0x482134]
mov ecx, dword [str..X:]
cbw
movzx esi, ax
mov eax, dword [0x482138]
mov dword [esp + 0x4c], eax
mov eax, dword [0x48212c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x6c]
sub eax, 0x8000
mov dword [esp + 0x48], edx
mov edx, dword [0x482128]
mov dword [esp + 0x44], ecx
mov cx, word [0x48213c]
mov dword [esp + 0x3c], edx
mov word [esp + 0x50], cx
mov word [esp + 0x4c], si
mov word [esp + 0x3c], si
je 0x421428
sub eax, 4
jne 0x42191c
lea ecx, [esp + 0x20]
call fcn.004106e0
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 9
mov dword [esp + 0x34], 3
call fcn.00404450
mov ebx, 7
push ebx
push 0x4814b0
lea ecx, [esp + 0x2c]
call fcn.004028b0
push ebx
push 0x4818a4
lea ecx, [esp + 0x30]
call fcn.004028b0
push 0
push 0x8004
lea edx, [esp + 0x28]
push edx
mov ecx, ebp
call fcn.0041ea80
lea ecx, [esp + 0x20]
call fcn.00410740
jmp 0x42191c
mov ecx, dword [esp + 0x68]
cmp dword [ecx - 0xc], 0
jl 0x42147e
push str.CDROM
push ecx
call dword [sym.imp.MSVCR90.dll_wcsstr]
mov ecx, dword [esp + 0x70]
add esp, 8
test eax, eax
je 0x421456
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jg 0x421719
cmp dword [ecx - 0xc], 0
jl 0x42147e
push 0x485560
push ecx
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x42147e
sub eax, dword [esp + 0x68]
sar eax, 1
cmp eax, 0xffffffff
jg 0x421719
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x42191c
lea ecx, [esp + 0x3c]
push ecx
push str.DriveLetter___s
call fcn.00403170
add esp, 8
lea ecx, [esp + 0x20]
call fcn.004106e0
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 6
mov dword [esp + 0x34], 3
call fcn.00404450
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.00415e20
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.00419e20
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 8
call fcn.00408200
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call fcn.00404450
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x2c]
call fcn.00404450
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00402410
call fcn.00450f10
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00402410
call fcn.00451050
movzx eax, ax
mov ecx, 0x5000
add esp, 4
cmp ax, cx
jb 0x42156a
mov edx, 0x5aff
cmp ax, dx
jbe 0x4215cc
mov eax, dword [esp + 0x68]
push eax
call fcn.00454480
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test eax, eax
je 0x421671
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 0x4216a8
lea edx, [esp + 0x44]
push edx
call fcn.00454480
add esp, 4
test eax, eax
je 0x4216a8
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 0x4216de
mov esi, dword [esp + 0x24]
cmp dword [esi - 0xc], 0
jl 0x4216de
mov edi, dword [sym.imp.MSVCR90.dll_wcsstr]
push eax
push esi
call edi
add esp, 8
test eax, eax
je 0x4216de
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4216de
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4216de
mov esi, dword [esp + 0x28]
cmp dword [esi - 0xc], 0
jl 0x4216de
push eax
push esi
call edi
add esp, 8
test eax, eax
je 0x4216de
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4216de
push 0
push 0x8000
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.0041ea80
lea ecx, [esp + 0x14]
call fcn.004023d0
lea ecx, [esp + 0x18]
call fcn.004023d0
lea ecx, [esp + 0x20]
call fcn.00410740
jmp 0x42191c
call edi
push eax
push str.ScsiCmdCallCheck_ERROR____d
call fcn.00403170
mov esi, dword [esp + 0x38]
add esp, 8
cmp esi, ebx
je 0x42158b
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00454480
add esp, 4
test eax, eax
je 0x42158b
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 0x4215bc
lea eax, [esp + 0x44]
push eax
call fcn.00454480
add esp, 4
test eax, eax
je 0x4215bc
mov dword [esp + 0x30], ebx
jmp 0x4215cc
lea ecx, [esp + 0x14]
call fcn.004023d0
lea ecx, [esp + 0x18]
call fcn.004023d0
lea ecx, [esp + 0x20]
call fcn.00410740
lea ecx, [esp + 0x68]
call fcn.004023d0
lea ecx, [esp + 0x70]
call fcn.004023d0
lea ecx, [esp + 0x74]
call fcn.004023d0
jmp 0x42198e
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x4a6038
call fcn.00403480
push 0x5c
mov ecx, 0x4a6038
call fcn.00410b00
lea eax, [esp + 0x3c]
push eax
push str._szVolumeTypePath___s
call fcn.00403170
mov edx, dword [0x4a643c]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, 0x4a643c
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov ecx, dword [0x4a6038]
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 0x4217e6
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 0x42191c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42191c
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.004014f0
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.00416100
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.00406300
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.004164a0
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.00410aa0
mov esi, dword [eax]
lea ecx, [esp + 0x14]
call fcn.00410aa0
mov edi, eax
test esi, esi
je 0x4218b3
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x4218b3
push esi
push eax
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4218b3
sub eax, dword [edi]
sar eax, 1
jne 0x4218b3
push 0
push 0
push ebx
push 0x41b760
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 0x4218d8
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 0x4218fd
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 0x42191c
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 0x421941
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 0x421966
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 0x42198e
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.00475d76
add esp, 0x50
ret 0x10