Function at 0x499782
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb129
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1c58
call fcn.004bedf0
mov dword [ebp - 0x1c54], ecx
mov dword [ebp - 0x1c24], 0
cmp dword [0x542e8c], 1
je 0x4997c6
cmp dword [0x542dfc], 0
je 0x4997cb
jmp 0x49b898
mov dword [0x542e8c], 1
push str._OnButtonScanusb_:_Start_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x5fd
mov ecx, dword [ebp - 0x1c54]
call fcn.004e2094
mov dword [ebp - 0x174c], eax
push str.Initial_Card_Spend_Time
mov ecx, dword [ebp - 0x174c]
call fcn.004e232b
mov dword [ebp - 0x1760], 0
jmp 0x499821
mov eax, dword [ebp - 0x1760]
add eax, 1
mov dword [ebp - 0x1760], eax
cmp dword [ebp - 0x1760], 0x11
jge 0x499872
mov ecx, dword [ebp - 0x1760]
imul ecx, ecx, 0x4e68
mov edx, dword [ebp - 0x1c54]
mov byte [edx + ecx + 0x30e0], 0xfe
mov eax, dword [ebp - 0x1760]
mov ecx, dword [ebp - 0x1c54]
cmp dword [ecx + eax*4 + 0x565c4], 0
je 0x499870
mov edx, dword [ebp - 0x1760]
mov eax, dword [ebp - 0x1c54]
mov ecx, dword [eax + edx*4 + 0x565c4]
mov byte [ecx], 0xfe
jmp 0x499812
mov edx, dword [ebp - 0x1c54]
cmp dword [edx + 0x16b8], 0
jne 0x4998b6
push 0
push 0
mov ecx, dword [ebp - 0x1c54]
call fcn.0049fce5
push 0x54d
mov ecx, dword [ebp - 0x1c54]
call fcn.004e2094
mov dword [ebp - 0x1c20], eax
push str.Scanning..
mov ecx, dword [ebp - 0x1c20]
call fcn.004e232b
mov dword [ebp - 0x1760], 1
jmp 0x4998d1
mov eax, dword [ebp - 0x1760]
add eax, 1
mov dword [ebp - 0x1760], eax
cmp dword [ebp - 0x1760], 0x11
jge 0x499953
cmp dword [0x54306c], 0
je 0x4998fc
mov ecx, dword [ebp - 0x1760]
mov edx, dword [ebp - 0x1c54]
mov dword [edx + ecx*4 + 0x270], 1
jmp 0x49994e
mov eax, dword [ebp - 0x1760]
add eax, 0x608
push eax
mov ecx, dword [ebp - 0x1c54]
call fcn.004e2094
mov ecx, eax
call fcn.00404d30
test eax, eax
je 0x499937
mov ecx, dword [ebp - 0x1760]
mov edx, dword [ebp - 0x1c54]
mov dword [edx + ecx*4 + 0x270], 1
jmp 0x49994e
mov eax, dword [ebp - 0x1760]
mov ecx, dword [ebp - 0x1c54]
mov dword [ecx + eax*4 + 0x270], 0
jmp 0x4998c2
cmp dword [0x542e88], 0
jne 0x499976
cmp dword [0x543374], 0
je 0x499976
push 0x44
push 0
push 0x542e44
call fcn.004be790
add esp, 0xc
mov dword [0x543ba0], 0
mov edx, dword [ebp - 0x1c54]
mov dword [edx + 0x2ed0], 0
mov dword [0x543bc4], 0
mov dword [0x543bac], 0
push 0x11
push 0
push 0x543b78
call fcn.004be790
add esp, 0xc
mov dword [ebp - 0x1730], 1
mov dword [ebp - 0x1748], 0
lea ecx, [ebp - 0x218]
call fcn.00404900
mov dword [ebp - 4], 0
mov dword [ebp - 0x1910], 0
jmp 0x4999f6
mov eax, dword [ebp - 0x1910]
add eax, 1
mov dword [ebp - 0x1910], eax
cmp dword [ebp - 0x1910], 0x18
jge 0x499a12
mov ecx, dword [ebp - 0x1910]
mov dword [ecx*4 + 0x543f10], 1
jmp 0x4999e7
call fcn.004a86d2
cmp dword [0x5425bc], 0
je 0x499b17
mov edx, dword [ebp - 0x1c54]
mov eax, dword [edx + 0xdac]
push eax
call fcn.004a88a2
add esp, 4
mov ecx, dword [ebp - 0x1c54]
cmp dword [ecx + 0xdac], 1
jne 0x499b17
mov dword [ebp - 0x1760], 0
jmp 0x499a67
mov edx, dword [ebp - 0x1760]
add edx, 1
mov dword [ebp - 0x1760], edx
cmp dword [ebp - 0x1760], 0x10
jge 0x499b07
mov eax, dword [ebp - 0x1760]
cmp dword [eax*4 + 0x543f70], 0
je 0x499b02
mov ecx, dword [ebp - 0x1760]
push ecx
push str.PORTINDEX_d
lea edx, [ebp - 0x218]
push edx
call fcn.004d89f2
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0xf2c]
push eax
call fcn.004be790
add esp, 0xc
mov ecx, dword [ebp - 0x1760]
mov edx, dword [ecx*4 + 0x543f70]
push edx
push 0x53d244
lea eax, [ebp - 0xf2c]
push eax
call fcn.004bec9d
add esp, 0xc
mov ecx, dword [ebp - 0x1c54]
add ecx, 0xeb4
push ecx
lea edx, [ebp - 0xf2c]
push edx
lea ecx, [ebp - 0x218]
call fcn.00404920
push eax
push str.INITIAL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x499a58
mov eax, dword [ebp - 0x1c54]
mov dword [eax + 0xdac], 0
mov dword [ebp - 0x1760], 1
jmp 0x499b32
mov ecx, dword [ebp - 0x1760]
add ecx, 1
mov dword [ebp - 0x1760], ecx
mov edx, dword [0x542f78]
add edx, 1
cmp dword [ebp - 0x1760], edx
jge 0x499b90
mov eax, dword [ebp - 0x1760]
mov byte [eax + 0x543b78], 0
mov ecx, dword [ebp - 0x1760]
mov byte [ecx + 0x543bb0], 0xff
mov edx, dword [ebp - 0x1760]
imul edx, edx, 0x35
mov dword [edx + 0x5433f4], 0
mov eax, dword [ebp - 0x1760]
mov byte [eax + 0x543b8c], 0
mov ecx, dword [ebp - 0x1760]
mov dword [ecx*4 + 0x542e00], 1
jmp 0x499b23
mov ecx, dword [ebp - 0x1c54]
call fcn.0049e09b
mov dword [ebp - 0x1760], 0
jmp 0x499bb6
mov edx, dword [ebp - 0x1760]
add edx, 1
mov dword [ebp - 0x1760], edx
cmp dword [ebp - 0x1760], 0x18
jge 0x499d73
cmp dword [0x5425bc], 0
jne 0x499bdb
mov eax, dword [0x543eac]
cmp eax, dword [ebp - 0x1760]
jne 0x499bdb
jmp 0x499ba7
cmp dword [0x5425bc], 0
jne 0x499bf4
mov ecx, dword [0x543ea8]
cmp ecx, dword [ebp - 0x1760]
jne 0x499bf4
jmp 0x499ba7
push 0
mov edx, dword [ebp - 0x1730]
push edx
mov eax, dword [ebp - 0x1760]
push eax
call fcn.004a8f63
add esp, 0xc
test eax, eax
je 0x499d6e
mov ecx, dword [ebp - 0x1730]
add ecx, 1
mov dword [ebp - 0x1730], ecx
cmp dword [0x5425bc], 0
je 0x499cca
cmp dword [0x543bc4], 0
je 0x499cca
mov dword [0x543ba0], 0
mov dword [ebp - 0x1910], 1
jmp 0x499c62
mov edx, dword [ebp - 0x1910]
add edx, 1
mov dword [ebp - 0x1910], edx
mov eax, dword [0x542f78]
add eax, 1
cmp dword [ebp - 0x1910], eax
jge 0x499cae
mov ecx, dword [ebp - 0x1910]
mov byte [ecx + 0x543b78], 0
mov edx, dword [ebp - 0x1910]
mov byte [edx + 0x543bb0], 0xff
mov eax, dword [ebp - 0x1910]
mov byte [eax + 0x543b8c], 0
mov ecx, dword [ebp - 0x1910]
imul ecx, ecx, 0x35
mov dword [ecx + 0x5433f4], 0
jmp 0x499c53
push 0
push 0x53d250
push str._Fix_Usb_Port__function_only_support_Not_SMI_Tester_device.
mov ecx, dword [ebp - 0x1c54]
call fcn.004e07ce
jmp 0x499d73
cmp dword [0x54303c], 0
je 0x499d6e
cmp dword [0x543bc4], 0
jne 0x499d6e
mov dword [0x543ba0], 0
mov dword [ebp - 0x1910], 1
jmp 0x499d09
mov edx, dword [ebp - 0x1910]
add edx, 1
mov dword [ebp - 0x1910], edx
mov eax, dword [0x542f78]
add eax, 1
cmp dword [ebp - 0x1910], eax
jge 0x499d55
mov ecx, dword [ebp - 0x1910]
mov byte [ecx + 0x543b78], 0
mov edx, dword [ebp - 0x1910]
mov byte [edx + 0x543bb0], 0xff
mov eax, dword [ebp - 0x1910]
mov byte [eax + 0x543b8c], 0
mov ecx, dword [ebp - 0x1910]
imul ecx, ecx, 0x35
mov dword [ecx + 0x5433f4], 0
jmp 0x499cfa
push 0
push str.WARNNING
push str.RamosProductionMode_cant_work_at_Not_SMI_Tester_device.
mov ecx, dword [ebp - 0x1c54]
call fcn.004e07ce
jmp 0x499d73
jmp 0x499ba7
mov dword [ebp - 0x1808], 0
mov dword [ebp - 0x210], 0
mov byte [ebp - 0x1c28], 0
mov dword [ebp - 0x214], 0
lea ecx, [ebp - 0x1c30]
call fcn.00404900
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a1c]
call fcn.00410590
lea ecx, [ebp - 0x228]
call fcn.004097b0
push 0xa0
push 0
lea edx, [ebp - 0x1800]
push edx
call fcn.004be790
add esp, 0xc
mov dword [ebp - 0x1760], 1
jmp 0x499dee
mov eax, dword [ebp - 0x1760]
add eax, 1
mov dword [ebp - 0x1760], eax
cmp dword [ebp - 0x1760], 0x11
jge 0x499ecf
mov ecx, dword [ebp - 0x1760]
mov edx, dword [ebp - 0x1c54]
cmp dword [edx + ecx*4 + 0x270], 0
jne 0x499e1e
mov eax, dword [ebp - 0x1760]
mov byte [eax + 0x543b78], 0
mov ecx, dword [ebp - 0x1c54]
cmp dword [ecx + 0x16b8], 0
je 0x499eca
mov edx, dword [ebp - 0x1760]
mov eax, dword [ebp - 0x1c54]
mov dword [eax + edx*4 + 0x16f8], 0
mov ecx, dword [ebp - 0x1c54]
add ecx, dword [ebp - 0x1760]
xor edx, edx
mov dl, byte [ecx + 0x16e5]
test edx, edx
je 0x499e8f
mov eax, dword [ebp - 0x1760]
xor ecx, ecx
mov cl, byte [eax + 0x543b78]
test ecx, ecx
jne 0x499e8d
push 0
push 1
push 0xff
mov edx, dword [ebp - 0x1760]
push edx
mov ecx, dword [ebp - 0x1c54]
call fcn.0049ee4c
jmp 0x499eca
mov eax, dword [ebp - 0x1760]
xor ecx, ecx
mov cl, byte [eax + 0x543b78]
cmp ecx, 1
jne 0x499eca
mov edx, dword [ebp - 0x1760]
mov byte [edx + 0x543b78], 0
push 0
push 0
push 0xff
mov eax, dword [ebp - 0x1760]
push eax
mov ecx, dword [ebp - 0x1c54]
call fcn.0049ee4c
jmp 0x499ddf
push 6
push 0
push 0x542e90
call fcn.004be790
add esp, 0xc
mov ecx, dword [ebp - 0x1c54]
call fcn.004a2886
mov dword [ebp - 0x1760], 1
jmp 0x499f06
mov ecx, dword [ebp - 0x1760]
add ecx, 1
mov dword [ebp - 0x1760], ecx
mov edx, dword [0x542f78]
add edx, 1
cmp dword [ebp - 0x1760], edx
jge 0x49b5cd
mov eax, dword [0x542eec]
push eax
mov ecx, dword [ebp - 0x1760]
sub ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x1c54]
mov ecx, dword [edx + 0xd0]
call fcn.00407599
mov eax, dword [ebp - 0x1760]
xor ecx, ecx
mov cl, byte [eax + 0x543b8c]
test ecx, ecx
jne 0x499fda
push 0x104
push 0
lea edx, [ebp - 0x1a14]
push edx
call fcn.004be790
add esp, 0xc
mov eax, dword [ebp - 0x1c54]
cmp dword [eax + 0x16b8], 0
je 0x499fa5
mov ecx, dword [ebp - 0x1c54]
add ecx, dword [ebp - 0x1760]
xor edx, edx
mov dl, byte [ecx + 0x16e5]
test edx, edx
je 0x499fa5
push str.Cant_find_device__
lea eax, [ebp - 0x1a14]
push eax
call fcn.004be9f0
add esp, 8
push 0xb0
push 0x32
push 0x80ffff
push 0x53d2f8
push 1
lea ecx, [ebp - 0x1a14]
push ecx
push 0xa
push 1
mov edx, dword [ebp - 0x1760]
push edx
mov ecx, dword [ebp - 0x1c54]
call fcn.004743ac
jmp 0x499ef7
mov eax, dword [ebp - 0x1760]
xor ecx, ecx
mov cl, byte [eax + 0x543b78]
test ecx, ecx
jne 0x49a0a1
push 0x104
push 0
lea edx, [ebp - 0x1a14]
push edx
call fcn.004be790
add esp, 0xc
push str.No_Card__
lea eax, [ebp - 0x1a14]
push eax
call fcn.004be9f0
add esp, 8
mov ecx, dword [ebp - 0x1c54]
cmp dword [ecx + 0x16b8], 0
je 0x49a06c
mov edx, dword [ebp - 0x1760]
mov eax, dword [ebp - 0x1c54]
cmp dword [eax + edx*4 + 0x16f8], 0xff0000
jne 0x49a06c
push 0x104
push 0
lea ecx, [ebp - 0x1a14]
push ecx
call fcn.004be790
add esp, 0xc
push str.AutoHandler_Skip__
lea edx, [ebp - 0x1a14]
push edx
call fcn.004be9f0
add esp, 8
push 0xb1
push 0x32
push 0x80ffff
push 0x53d31c
push 1
lea eax, [ebp - 0x1a14]
push eax
push 0xa
push 1
mov ecx, dword [ebp - 0x1760]
push ecx
mov ecx, dword [ebp - 0x1c54]
call fcn.004743ac
jmp 0x499ef7
push 0xb1
mov edx, dword [ebp - 0x1760]
mov eax, dword [ebp - 0x1c54]
mov ecx, dword [eax + edx*4 + 0x22c]
call fcn.0040ca5e
mov ecx, dword [ebp - 0x1760]
xor edx, edx
mov dl, byte [ecx + 0x543b78]
cmp edx, 1
jne 0x49a18c
mov eax, dword [ebp - 0x1760]
movsx ecx, byte [eax + 0x543bb0]
cmp ecx, 0xffffffff
je 0x49a18c
push 0x104
push 0
lea edx, [ebp - 0x190c]
push edx
call fcn.004be790
add esp, 0xc
mov eax, dword [ebp - 0x1760]
push eax
push str._OnButtonScanusb__:____d___Open_handle_again_____________n
lea ecx, [ebp - 0x190c]
push ecx
call fcn.004bec9d
add esp, 0xc
lea edx, [ebp - 0x190c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
lea eax, [ebp - 0x1804]
push eax
mov ecx, dword [ebp - 0x1760]
push ecx
call fcn.004a818a
add esp, 0xc
mov dword [ebp - 0x1c2c], eax
push 0x104
push 0
lea edx, [ebp - 0x190c]
push edx
call fcn.004be790
add esp, 0xc
mov eax, dword [ebp - 0x1804]
push eax
mov ecx, dword [ebp - 0x1760]
push ecx
push str._OnButtonScanusb__:____d___Handle__0x_lx_____________n
lea edx, [ebp - 0x190c]
push edx
call fcn.004bec9d
add esp, 0x10
lea eax, [ebp - 0x190c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x1c2c], 0
jne 0x49a25b
push 0x104
push 0
lea ecx, [ebp - 0x190c]
push ecx
call fcn.004be790
add esp, 0xc
mov edx, dword [ebp - 0x1760]
push edx
push str._OnButtonScanusb__:____d___Open_handle_fail_____________n
lea eax, [ebp - 0x190c]
push eax
call fcn.004bec9d
add esp, 0xc
lea ecx, [ebp - 0x190c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x1760]
mov byte [edx + 0x543b78], 0
push 0
push 0x50
push 0xff
mov eax, dword [ebp - 0x1760]
push eax
mov ecx, dword [ebp - 0x1c54]
call fcn.0049ee4c
push 0x104
push 0
lea ecx, [ebp - 0x1a14]
push ecx
call fcn.004be790
add esp, 0xc
push str.Card_Fail__
lea edx, [ebp - 0x1a14]
push edx
call fcn.004be9f0
add esp, 8
push 0
push 0x32
push 0xff
push 0x53d3dc
push 1
lea eax, [ebp - 0x1a14]
push eax
push 0xa
push 1
mov ecx, dword [ebp - 0x1760]
push ecx
mov ecx, dword [ebp - 0x1c54]
call fcn.004743ac
jmp 0x499ef7
cmp dword [0x543348], 0
je 0x49a2d1
cmp dword [0x543374], 0
je 0x49a2d1
mov edx, dword [ebp - 0x1760]
cmp dword [edx*4 + 0x542e44], 0
jne 0x49a2d1
cmp dword [0x542eec], 0
jle 0x49a2cf
mov eax, dword [0x542eec]
push eax
mov ecx, dword [ebp - 0x1760]
sub ecx, 1
push ecx
push 0xa
mov edx, dword [ebp - 0x1c54]
mov ecx, dword [edx + 0xd0]
call fcn.004075ee
push str.No_Serial_Number_in_Barcode_
mov eax, dword [0x542eec]
push eax
mov ecx, dword [ebp - 0x1760]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x1c54]
mov ecx, dword [edx + 0xd0]
call fcn.004dab9d
jmp 0x49a323
cmp dword [0x542eec], 0
jle 0x49a323
mov eax, dword [0x542eec]
push eax
mov ecx, dword [ebp - 0x1760]
sub ecx, 1
push ecx
push 7
mov edx, dword [ebp - 0x1c54]
mov ecx, dword [edx + 0xd0]
call fcn.004075ee
push str.Ready
mov eax, dword [0x542eec]
push eax
mov ecx, dword [ebp - 0x1760]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x1c54]
mov ecx, dword [edx + 0xd0]
call fcn.004dab9d
lea ecx, [ebp - 0x228]
call fcn.00409840
push eax
mov eax, dword [ebp - 0x1760]
mov ecx, dword [ebp - 0x1c54]
mov ecx, dword [ecx + eax*4 + 0x22c]
call fcn.00409b80
lea edx, [ebp - 0x1c40]
push edx
lea ecx, [ebp - 0x228]
call fcn.004a5860
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x1a1c], ecx
mov dword [ebp - 0x1a18], edx
push 0xf
push 0x80ffff
mov eax, dword [ebp - 0x1a18]
push eax
mov ecx, dword [ebp - 0x1a1c]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x1c44], esp
push 0x5438a0
call fcn.004e2e8f
mov dword [ebp - 0x1c58], eax
mov edx, dword [ebp - 0x1760]
mov eax, dword [ebp - 0x1c54]
mov ecx, dword [eax + edx*4 + 0x22c]
call fcn.0040c4a2
push 0x104
push 0
lea ecx, [ebp - 0x190c]
push ecx
call fcn.004be790
add esp, 0xc
mov edx, dword [ebp - 0x1760]
push edx
push str._OnButtonScanusb__:____d___Send_SMI_CMD_START___to_check_run_mode_____________n
lea eax, [ebp - 0x190c]
push eax
call fcn.004bec9d
add esp, 0xc
lea ecx, [ebp - 0x190c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x1804]
push edx
lea eax, [ebp - 0x175c]
push eax
call fcn.004b07a8
add esp, 8
mov dword [ebp - 0x1c2c], eax
cmp dword [ebp - 0x1c2c], 0
jne 0x49a4b3
push 0x104
push 0
lea ecx, [ebp - 0x1a14]
push ecx
call fcn.004be790
add esp, 0xc
push str.Command_flow_Fail__
lea edx, [ebp - 0x1a14]
push edx
call fcn.004be9f0
add esp, 8
push 0
push 0x32
push 0xff
push 0x53d46c
push 1
lea eax, [ebp - 0x1a14]
push eax
push 0xa
push 1
mov ecx, dword [ebp - 0x1760]
push ecx
mov ecx, dword [ebp - 0x1c54]
call fcn.004743ac
mov edx, dword [ebp - 0x1760]
mov byte [edx + 0x543b78], 0
push 0
push 0x51
push 0xff
mov eax, dword [ebp - 0x1760]
push eax
mov ecx, dword [ebp - 0x1c54]
call fcn.0049ee4c
push 1
mov ecx, dword [ebp - 0x1804]
push ecx
mov edx, dword [ebp - 0x1760]
push edx
call fcn.004a82e2
add esp, 0xc
jmp 0x499ef7
mov al, byte [ebp - 0x175c]
mov byte [ebp - 0x1c28], al
mov ecx, dword [ebp - 0x1760]
sub ecx, 1
imul ecx, ecx, 0xa
mov dl, byte [ebp - 0x1c28]
mov byte [ebp + ecx - 0x17f8], dl
mov eax, dword [ebp - 0x1c28]
and eax, 0xff
cmp eax, 2
je 0x49a4f8
mov ecx, dword [ebp - 0x1c54]
mov dword [ecx + 0x27a8], 0
mov edx, dword [ebp - 0x1c28]
and edx, 0xff
cmp edx, 2
je 0x49accc
push 0xc00
lea eax, [ebp - 0xe28]
push eax
mov ecx, dword [ebp - 0x1804]
push ecx
lea edx, [ebp - 0x175c]
push edx
call fcn.004b0dda
add esp, 0x10
mov dword [ebp - 0x1c2c], eax
cmp dword [ebp - 0x1c2c], 0
jne 0x49a5de
push 0x104
push 0
lea eax, [ebp - 0x1a14]
push eax
call fcn.004be790
add esp, 0xc
push str.Read_FlashID_Fail__
lea ecx, [ebp - 0x1a14]
push ecx
call fcn.004be9f0
add esp, 8
push 0
push 0x32
push 0xff
push 0x53d484
push 1
lea edx, [ebp - 0x1a14]
push edx
push 0xa
push 1
mov eax, dword [ebp - 0x1760]
push eax
mov ecx, dword [ebp - 0x1c54]
call fcn.004743ac
mov ecx, dword [ebp - 0x1760]
mov byte [ecx + 0x543b78], 0
push 0
push 0x52
push 0xff
mov edx, dword [ebp - 0x1760]
push edx
mov ecx, dword [ebp - 0x1c54]
call fcn.0049ee4c
push 1
mov eax, dword [ebp - 0x1804]
push eax
mov ecx, dword [ebp - 0x1760]
push ecx
call fcn.004a82e2
add esp, 0xc
jmp 0x499ef7
mov edx, dword [ebp - 0x1c28]
and edx, 0xff
test edx, edx
jne 0x49a85c
mov dword [ebp - 0x210], 0
jmp 0x49a60d
mov eax, dword [ebp - 0x210]
add eax, 1
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0x20
jge 0x49a7c6
mov ecx, dword [ebp - 0x210]
xor edx, edx
mov dl, byte [ebp + ecx*8 - 0xdf8]
cmp edx, 0xec
je 0x49a71e
mov eax, dword [ebp - 0x210]
xor ecx, ecx
mov cl, byte [ebp + eax*8 - 0xdf8]
cmp ecx, 0x98
je 0x49a71e
mov edx, dword [ebp - 0x210]
xor eax, eax
mov al, byte [ebp + edx*8 - 0xdf8]
cmp eax, 0xc1
je 0x49a71e
mov ecx, dword [ebp - 0x210]
xor edx, edx
mov dl, byte [ebp + ecx*8 - 0xdf8]
cmp edx, 0x45
je 0x49a71e
mov eax, dword [ebp - 0x210]
xor ecx, ecx
mov cl, byte [ebp + eax*8 - 0xdf8]
cmp ecx, 0xad
je 0x49a71e
mov edx, dword [ebp - 0x210]
xor eax, eax
mov al, byte [ebp + edx*8 - 0xdf8]
cmp eax, 0x2c
je 0x49a71e
mov ecx, dword [ebp - 0x210]
xor edx, edx
mov dl, byte [ebp + ecx*8 - 0xdf8]
cmp edx, 0xb5
je 0x49a71e
mov eax, dword [ebp - 0x210]
xor ecx, ecx
mov cl, byte [ebp + eax*8 - 0xdf8]
cmp ecx, 0x20
je 0x49a71e
mov edx, dword [ebp - 0x210]
xor eax, eax
mov al, byte [ebp + edx*8 - 0xdf8]
cmp eax, 0x89
je 0x49a71e
mov ecx, dword [ebp - 0x210]
xor edx, edx
mov dl, byte [ebp + ecx*8 - 0xdf8]
cmp edx, 7
je 0x49a71e
mov eax, dword [ebp - 0x210]
xor ecx, ecx
mov cl, byte [ebp + eax*8 - 0xdf8]
cmp ecx, 0x20
jne 0x49a7c1
mov edx, dword [ebp - 0x210]
xor eax, eax
mov al, byte [ebp + edx*8 - 0xdf7]
cmp eax, 0xff
je 0x49a7c1
mov ecx, dword [ebp - 0x210]
xor edx, edx
mov dl, byte [ebp + ecx*8 - 0xdf6]
cmp edx, 0xff
je 0x49a7c1
mov eax, dword [ebp - 0x210]
xor ecx, ecx
mov cl, byte [ebp + eax*8 - 0xdf5]
cmp ecx, 0xff
je 0x49a7c1
mov edx, dword [ebp - 0x210]
xor eax, eax
mov al, byte [ebp + edx*8 - 0xdf4]
cmp eax, 0xff
je 0x49a7c1
mov ecx, dword [ebp - 0x210]
xor edx, edx
mov dl, byte [ebp + ecx*8 - 0xdf3]
cmp edx, 0xff
je 0x49a7c1
push 8
mov eax, dword [ebp - 0x210]
lea ecx, [ebp + eax*8 - 0xdf8]
push ecx
mov edx, dword [ebp - 0x1760]
sub edx, 1
imul edx, edx, 0xa
lea eax, [ebp + edx - 0x1800]
push eax
call fcn.004bee30
add esp, 0xc
jmp 0x49a7c6
jmp 0x49a5fe
mov ecx, dword [ebp - 0xe14]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp - 0xe13]
and edx, 0xff
shl edx, 0x10
add ecx, edx
mov eax, dword [ebp - 0xe12]
and eax, 0xff
shl eax, 8
add ecx, eax
mov edx, dword [ebp - 0xe11]
and edx, 0xff
add ecx, edx
mov dword [ebp - 0x214], ecx
cmp dword [0x542eec], 0
jle 0x49a85c
mov eax, dword [0x542eec]
push eax
mov ecx, dword [ebp - 0x1760]
sub ecx, 1
push ecx
push 7
mov edx, dword [ebp - 0x1c54]
mov ecx, dword [edx + 0xd0]
call fcn.004075ee
push str.Ready__RomMode_
mov eax, dword [0x542eec]
push eax
mov ecx, dword [ebp - 0x1760]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x1c54]
mov ecx, dword [edx + 0xd0]
call fcn.004dab9d
mov eax, dword [ebp - 0x1c28]
and eax, 0xff
cmp eax, 1
jne 0x49acc7
mov ecx, dword [ebp - 0xe17]
and ecx, 0xff
shl ecx, 8
mov edx, dword [ebp - 0xe18]
and edx, 0xff
add ecx, edx
mov word [ebp - 0x1750], cx
mov dword [ebp - 0x210], 0
jmp 0x49a8af
mov eax, dword [ebp - 0x210]
add eax, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0x800
jge 0x49ab3d
mov ecx, dword [ebp - 0x1750]
and ecx, 0xffff
add ecx, dword [ebp - 0x210]
xor edx, edx
mov dl, byte [ebp + ecx - 0xe28]
cmp edx, 0xec
je 0x49aa4b
mov eax, dword [ebp - 0x1750]
and eax, 0xffff
add eax, dword [ebp - 0x210]
xor ecx, ecx
mov cl, byte [ebp + eax - 0xe28]
cmp ecx, 0x98
je 0x49aa4b
mov edx, dword [ebp - 0x1750]
and edx, 0xffff
add edx, dword [ebp - 0x210]
xor eax, eax
mov al, byte [ebp + edx - 0xe28]
cmp eax, 0xc1
je 0x49aa4b
mov ecx, dword [ebp - 0x1750]
and ecx, 0xffff
add ecx, dword [ebp - 0x210]
xor edx, edx
mov dl, byte [ebp + ecx - 0xe28]
cmp edx, 0x45
je 0x49aa4b
mov eax, dword [ebp - 0x1750]
and eax, 0xffff
add eax, dword [ebp - 0x210]
xor ecx, ecx
mov cl, byte [ebp + eax - 0xe28]
cmp ecx, 0xad
je 0x49aa4b
mov edx, dword [ebp - 0x1750]
and edx, 0xffff
add edx, dword [ebp - 0x210]
xor eax, eax
mov al, byte [ebp + edx - 0xe28]
cmp eax, 0x2c
je 0x49aa4b
mov ecx, dword [ebp - 0x1750]
and ecx, 0xffff
add ecx, dword [ebp - 0x210]
xor edx, edx
mov dl, byte [ebp + ecx - 0xe28]
cmp edx, 0xb5
je 0x49aa4b
mov eax, dword [ebp - 0x1750]
and eax, 0xffff
add eax, dword [ebp - 0x210]
xor ecx, ecx
mov cl, byte [ebp + eax - 0xe28]
cmp ecx, 0x20
je 0x49aa4b
mov edx, dword [ebp - 0x1750]
and edx, 0xffff
add edx, dword [ebp - 0x210]
xor eax, eax
mov al, byte [ebp + edx - 0xe28]
cmp eax, 0x89
je 0x49aa4b
mov ecx, dword [ebp - 0x1750]
and ecx, 0xffff
add ecx, dword [ebp - 0x210]
xor edx, edx
mov dl, byte [ebp + ecx - 0xe28]
cmp edx, 7
je 0x49aa4b
mov eax, dword [ebp - 0x1750]
and eax, 0xffff
add eax, dword [ebp - 0x210]
xor ecx, ecx
mov cl, byte [ebp + eax - 0xe28]
cmp ecx, 0x20
jne 0x49ab38
mov edx, dword [ebp - 0x1750]
and edx, 0xffff
add edx, dword [ebp - 0x210]
xor eax, eax
mov al, byte [ebp + edx - 0xe27]
cmp eax, 0xff
je 0x49ab38
mov ecx, dword [ebp - 0x1750]
and ecx, 0xffff
add ecx, dword [ebp - 0x210]
xor edx, edx
mov dl, byte [ebp + ecx - 0xe26]
cmp edx, 0xff
je 0x49ab38
mov eax, dword [ebp - 0x1750]
and eax, 0xffff
add eax, dword [ebp - 0x210]
xor ecx, ecx
mov cl, byte [ebp + eax - 0xe25]
cmp ecx, 0xff
je 0x49ab38
mov edx, dword [ebp - 0x1750]
and edx, 0xffff
add edx, dword [ebp - 0x210]
xor eax, eax
mov al, byte [ebp + edx - 0xe24]
cmp eax, 0xff
je 0x49ab38
mov ecx, dword [ebp - 0x1750]
and ecx, 0xffff
add ecx, dword [ebp - 0x210]
xor edx, edx
mov dl, byte [ebp + ecx - 0xe23]
cmp edx, 0xff
je 0x49ab38
push 8
mov eax, dword [ebp - 0x1750]
and eax, 0xffff
add eax, dword [ebp - 0x210]
lea ecx, [ebp + eax - 0xe28]
push ecx
mov edx, dword [ebp - 0x1760]
sub edx, 1
imul edx, edx, 0xa
lea eax, [ebp + edx - 0x1800]
push eax
call fcn.004bee30
add esp, 0xc
jmp 0x49ab3d
jmp 0x49a8a0
push 0x800
push 0
lea ecx, [ebp - 0x172c]
push ecx
call fcn.004be790
add esp, 0xc
push 0x800
lea edx, [ebp - 0x172c]
push edx
mov eax, dword [ebp - 0x1804]
push eax
lea ecx, [ebp - 0x175c]
push ecx
call fcn.004b121e
add esp, 0x10
mov dword [ebp - 0x1c2c], eax
cmp dword [ebp - 0x1c2c], 0
je 0x49abca
mov edx, dword [ebp - 0x171b]
and edx, 0xff
shl edx, 8
mov eax, dword [ebp - 0x171c]
and eax, 0xff
add edx, eax
mov word [ebp - 0x1750], dx
mov ecx, dword [ebp - 0x1750]
and ecx, 0xffff
xor edx, edx
mov dl, byte [ebp + ecx - 0x163c]
test edx, edx
jne 0x49abca
mov dword [ebp - 0x1c2c], 0
cmp dword [ebp - 0x1c2c], 0
je 0x49ac73
mov eax, dword [ebp - 0x1750]
and eax, 0xffff
xor ecx, ecx
mov cl, byte [ebp + eax - 0x16c9]
shl ecx, 0x18
mov edx, dword [ebp - 0x1750]
and edx, 0xffff
xor eax, eax
mov al, byte [ebp + edx - 0x16ca]
shl eax, 0x10
add ecx, eax
mov edx, dword [ebp - 0x1750]
and edx, 0xffff
xor eax, eax
mov al, byte [ebp + edx - 0x16cb]
shl eax, 8
add ecx, eax
mov edx, dword [ebp - 0x1750]
and edx, 0xffff
xor eax, eax
mov al, byte [ebp + edx - 0x16cc]
add ecx, eax
mov dword [ebp - 0x214], ecx
mov ecx, dword [ebp - 0x1750]
and ecx, 0xffff
xor edx, edx
mov dl, byte [ebp + ecx - 0x16ed]
shl edx, 8
mov eax, dword [ebp - 0x1750]
and eax, 0xffff
xor ecx, ecx
mov cl, byte [ebp + eax - 0x16ee]
add edx, ecx
mov dword [ebp - 0x1c24], edx
cmp dword [0x542eec], 0
jle 0x49acc7
mov edx, dword [0x542eec]
push edx
mov eax, dword [ebp - 0x1760]
sub eax, 1
push eax
push 7
mov ecx, dword [ebp - 0x1c54]
mov ecx, dword [ecx + 0xd0]
call fcn.004075ee
push str.Ready__MPISP_
mov edx, dword [0x542eec]
push edx
mov eax, dword [ebp - 0x1760]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x1c54]
mov ecx, dword [ecx + 0xd0]
call fcn.004dab9d
jmp 0x49aef6
push 0x800
push 0
lea edx, [ebp - 0x172c]
push edx
call fcn.004be790
add esp, 0xc
push 0x800
lea eax, [ebp - 0x172c]
push eax
mov ecx, dword [ebp - 0x1804]
push ecx
lea edx, [ebp - 0x175c]
push edx
call fcn.004b121e
add esp, 0x10
mov dword [ebp - 0x1c2c], eax
cmp dword [ebp - 0x1c2c], 0
jne 0x49adb3
push 0x104
push 0
lea eax, [ebp - 0x1a14]
push eax
call fcn.004be790
add esp, 0xc
push str.Read_DriveInfo_Fail__
lea ecx, [ebp - 0x1a14]
push ecx
call fcn.004be9f0
add esp, 8
push 0
push 0x32
push 0xff
push 0x53d4c0
push 1
lea edx, [ebp - 0x1a14]
push edx
push 0xa
push 1
mov eax, dword [ebp - 0x1760]
push eax
mov ecx, dword [ebp - 0x1c54]
call fcn.004743ac
mov ecx, dword [ebp - 0x1760]
mov byte [ecx + 0x543b78], 0
push 0
push 0x53
push 0xff
mov edx, dword [ebp - 0x1760]
push edx
mov ecx, dword [ebp - 0x1c54]
call fcn.0049ee4c
push 1
mov eax, dword [ebp - 0x1804]
push eax
mov ecx, dword [ebp - 0x1760]
push ecx
call fcn.004a82e2
add esp, 0xc
jmp 0x499ef7
push 6
lea edx, [ebp - 0x163c]
push edx
mov eax, dword [ebp - 0x1760]
sub eax, 1
imul eax, eax, 0xa
lea ecx, [ebp + eax - 0x1800]
push ecx
call fcn.004bee30
add esp, 0xc
mov edx, dword [ebp - 0x16c9]
and edx, 0xff
shl edx, 0x18
mov eax, dword [ebp - 0x16ca]
and eax, 0xff
shl eax, 0x10
add edx, eax
mov ecx, dword [ebp - 0x16cb]
and ecx, 0xff
shl ecx, 8
add edx, ecx
mov eax, dword [ebp - 0x16cc]
and eax, 0xff
add edx, eax
mov dword [ebp - 0x214], edx
mov ecx, dword [ebp - 0x16ed]
and ecx, 0xff
shl ecx, 8
mov edx, dword [ebp - 0x16ee]
and edx, 0xff
add ecx, edx
mov dword [ebp - 0x1c24], ecx
push 0x11
push 0
lea eax, [ebp - 0x1744]
push eax
call fcn.004be790
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x152c]
push ecx
lea edx, [ebp - 0x1744]
push edx
call fcn.004bee30
add esp, 0xc
mov byte [ebp - 0x1734], 0
push 0x104
push 0
lea eax, [ebp - 0x1a14]
push eax
call fcn.004be790
add esp, 0xc
lea ecx, [ebp - 0x1744]
push ecx
push str.Ready__FW:__s_
lea edx, [ebp - 0x1a14]
push edx
call fcn.004bec9d
add esp, 0xc
cmp dword [0x542eec], 0
jle 0x49aef6
mov eax, dword [0x542eec]
push eax
mov ecx, dword [ebp - 0x1760]
sub ecx, 1
push ecx
push 7
mov edx, dword [ebp - 0x1c54]
mov ecx, dword [edx + 0xd0]
call fcn.004075ee
lea eax, [ebp - 0x1a14]
push eax
mov ecx, dword [0x542eec]
push ecx
mov edx, dword [ebp - 0x1760]
sub edx, 1
push edx
mov eax, dword [ebp - 0x1c54]
mov ecx, dword [eax + 0xd0]
call fcn.004dab9d
mov ecx, dword [ebp - 0x1760]
sub ecx, 1
imul ecx, ecx, 0xa
xor edx, edx
mov dl, byte [ebp + ecx - 0x1800]
test edx, edx
jne 0x49af74
push 0
push 0x32
push 0xff
push 0x53d4d4
push 1
lea eax, [ebp - 0x1a14]
push eax
push 0xa
push 0
mov ecx, dword [ebp - 0x1760]
push ecx
mov ecx, dword [ebp - 0x1c54]
call fcn.004743ac
push 0
push 0x54
push 0xff
mov edx, dword [ebp - 0x1760]
push edx
mov ecx, dword [ebp - 0x1c54]
call fcn.0049ee4c
push 1
mov eax, dword [ebp - 0x1804]
push eax
mov ecx, dword [ebp - 0x1760]
push ecx
call fcn.004a82e2
add esp, 0xc
jmp 0x499ef7
cmp dword [0x542ef0], 0
jle 0x49afc4
mov edx, dword [ebp - 0x214]
shr edx, 0xb
push edx
push str._d_MB
lea eax, [ebp - 0x20c]
push eax
call fcn.004bec9d
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [0x542ef0]
push edx
mov eax, dword [ebp - 0x1760]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x1c54]
mov ecx, dword [ecx + 0xd0]
call fcn.004dab9d
cmp dword [0x542f00], 0
jle 0x49b011
mov edx, dword [ebp - 0x1c24]
push edx
push 0x53d4e0
lea eax, [ebp - 0x20c]
push eax
call fcn.004bec9d
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [0x542f00]
push edx
mov eax, dword [ebp - 0x1760]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x1c54]
mov ecx, dword [ecx + 0xd0]
call fcn.004dab9d
mov edx, dword [ebp - 0x1c28]
and edx, 0xff
cmp edx, 2
jne 0x49b2c6
push 0x104
push 0
lea eax, [ebp - 0x190c]
push eax
call fcn.004be790
add esp, 0xc
mov ecx, dword [ebp - 0x1760]
push ecx
push str._OnButtonScanusb__:____d___Read_ID_Table_to_get_Serial_Number_____________n
lea edx, [ebp - 0x190c]
push edx
call fcn.004bec9d
add esp, 0xc
lea eax, [ebp - 0x190c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x200
push 0
lea ecx, [ebp - 0x1c1c]
push ecx
call fcn.004be790
add esp, 0xc
lea edx, [ebp - 0x1c1c]
push edx
mov eax, dword [ebp - 0x1804]
push eax
lea ecx, [ebp - 0x175c]
push ecx
call fcn.004b1101
add esp, 0xc
mov dword [ebp - 0x1c2c], eax
lea ecx, [ebp - 0x1c30]
call fcn.004e2dac
cmp dword [ebp - 0x1c2c], 0
je 0x49b11f
mov dword [ebp - 0x1910], 0
jmp 0x49b0cc
mov edx, dword [ebp - 0x1910]
add edx, 1
mov dword [ebp - 0x1910], edx
cmp dword [ebp - 0x1910], 0xa
jge 0x49b11d
mov eax, dword [ebp - 0x1910]
xor ecx, ecx
mov cl, byte [ebp + eax*2 - 0x1c08]
push ecx
mov edx, dword [ebp - 0x1910]
xor eax, eax
mov al, byte [ebp + edx*2 - 0x1c07]
push eax
push str._C_C
lea ecx, [ebp - 0x218]
push ecx
call fcn.004d89f2
add esp, 0x10
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x1c30]
call fcn.004e3239
jmp 0x49b0bd
jmp 0x49b133
push 0x53d538
lea eax, [ebp - 0x1c30]
push eax
call fcn.004d89f2
add esp, 8
cmp dword [0x542ef4], 0
jle 0x49b16a
lea ecx, [ebp - 0x1c30]
call fcn.00404920
push eax
mov ecx, dword [0x542ef4]
push ecx
mov edx, dword [ebp - 0x1760]
sub edx, 1
push edx
mov eax, dword [ebp - 0x1c54]
mov ecx, dword [eax + 0xd0]
call fcn.004dab9d
cmp dword [ebp - 0x1c2c], 0
je 0x49b2c6
push 0x53d53c
lea ecx, [ebp - 0x1744]
push ecx
call fcn.004bf3f0
add esp, 8
test eax, eax
jne 0x49b2c6
push 0x104
push 0
lea edx, [ebp - 0x1a14]
push edx
call fcn.004be790
add esp, 0xc
mov eax, dword [ebp - 0x1be8]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x1be7]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x1bea]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x1be9]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x1bec]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x1beb]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x1bee]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x1bed]
and ecx, 0xff
push ecx
push str.Ready___FW:__C_C_C_C_C_C_C_C_
lea edx, [ebp - 0x1a14]
push edx
call fcn.004bec9d
add esp, 0x28
cmp dword [0x542eec], 0
jle 0x49b2c6
push 0x5438a4
mov eax, dword [0x542eec]
push eax
mov ecx, dword [ebp - 0x1760]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x1c54]
mov ecx, dword [edx + 0xd0]
call fcn.004dab9d
lea eax, [ebp - 0x1a14]
push eax
mov ecx, dword [0x542eec]
push ecx
mov edx, dword [ebp - 0x1760]
sub edx, 1
push edx
mov eax, dword [ebp - 0x1c54]
mov ecx, dword [eax + 0xd0]
call fcn.004dab9d
mov ecx, dword [0x542eec]
push ecx
mov edx, dword [ebp - 0x1760]
sub edx, 1
push edx
push 7
mov eax, dword [ebp - 0x1c54]
mov ecx, dword [eax + 0xd0]
call fcn.004075ee
mov ecx, dword [0x542eec]
push ecx
mov edx, dword [ebp - 0x1760]
sub edx, 1
push edx
push 0
mov eax, dword [ebp - 0x1c54]
mov ecx, dword [eax + 0xd0]
call fcn.00407599
cmp dword [0x542efc], 0
jle 0x49b47b
push 0x200
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004be790
add esp, 0xc
mov edx, dword [ebp - 0x1760]
sub edx, 1
imul edx, edx, 0xa
xor eax, eax
mov al, byte [ebp + edx - 0x1800]
mov dword [ebp - 0x1c5c], eax
mov ecx, dword [ebp - 0x1c5c]
sub ecx, 7
mov dword [ebp - 0x1c5c], ecx
cmp dword [ebp - 0x1c5c], 0xe5
ja case.0x49b331.10
mov eax, dword [ebp - 0x1c5c]
xor edx, edx
mov dl, byte [eax + 0x49b8d2]
jmp dword [edx*4 + 0x49b8a6]
push str.RENESES
push 0x53d568
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004bec9d
add esp, 0xc
jmp case.0x49b331.10
push 0x53d56c
push 0x53d570
lea edx, [ebp - 0x20c]
push edx
call fcn.004bec9d
add esp, 0xc
jmp case.0x49b331.10
push str.MICRON
push 0x53d57c
lea eax, [ebp - 0x20c]
push eax
call fcn.004bec9d
add esp, 0xc
jmp case.0x49b331.10
push str.SPECTEK
push 0x53d588
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004bec9d
add esp, 0xc
jmp case.0x49b331.10
push str.SANDISK
push 0x53d594
lea edx, [ebp - 0x20c]
push edx
call fcn.004bec9d
add esp, 0xc
jmp case.0x49b331.10
push str.TOSHIBA
push 0x53d5a0
lea eax, [ebp - 0x20c]
push eax
call fcn.004bec9d
add esp, 0xc
jmp case.0x49b331.10
push str.HYNIX
push 0x53d5ac
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004bec9d
add esp, 0xc
jmp case.0x49b331.10
push str.INFINEON
push 0x53d5bc
lea edx, [ebp - 0x20c]
push edx
call fcn.004bec9d
add esp, 0xc
jmp case.0x49b331.10
push str.SAMSUNG
push 0x53d5c8
lea eax, [ebp - 0x20c]
push eax
call fcn.004bec9d
add esp, 0xc
jmp case.0x49b331.10
push str.INTEL
push 0x53d5d4
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004bec9d
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [0x542efc]
push eax
mov ecx, dword [ebp - 0x1760]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x1c54]
mov ecx, dword [edx + 0xd0]
call fcn.004dab9d
mov eax, dword [ebp - 0x1760]
sub eax, 1
imul eax, eax, 0xa
mov byte [ebp + eax - 0x17f7], 1
push 1
mov ecx, dword [ebp - 0x1804]
push ecx
mov edx, dword [ebp - 0x1760]
push edx
call fcn.004a82e2
add esp, 0xc
push 0x200
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004be790
add esp, 0xc
mov ecx, dword [ebp - 0x214]
shr ecx, 0xb
push ecx
push str._d_M
lea edx, [ebp - 0x20c]
push edx
call fcn.004bec9d
add esp, 0xc
lea ecx, [ebp - 0x228]
call fcn.00409840
push eax
mov eax, dword [ebp - 0x1760]
mov ecx, dword [ebp - 0x1c54]
mov ecx, dword [ecx + eax*4 + 0x22c]
call fcn.00409b80
lea edx, [ebp - 0x1c4c]
push edx
lea ecx, [ebp - 0x228]
call fcn.004a5860
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x1a1c], ecx
mov dword [ebp - 0x1a18], edx
push 0xd
push 0x80ffff
mov eax, dword [ebp - 0x1a18]
push eax
mov ecx, dword [ebp - 0x1a1c]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x1c50], esp
lea edx, [ebp - 0x20c]
push edx
call fcn.004e2e8f
mov dword [ebp - 0x1c60], eax
mov eax, dword [ebp - 0x1760]
mov ecx, dword [ebp - 0x1c54]
mov ecx, dword [ecx + eax*4 + 0x22c]
call fcn.0040c4a2
cmp dword [0x54303c], 0
je 0x49b5c8
push 0x200
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.004be790
add esp, 0xc
mov eax, dword [ebp - 0x1760]
push eax
push str.PORT_d
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004bec9d
add esp, 0xc
mov edx, dword [ebp - 0x1c54]
add edx, 0x2ed4
push edx
push str.READY
lea eax, [ebp - 0x20c]
push eax
push str.RESULT
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x499ef7
mov dword [ebp - 0x1760], 0
jmp 0x49b5e8
mov ecx, dword [ebp - 0x1760]
add ecx, 1
mov dword [ebp - 0x1760], ecx
cmp dword [ebp - 0x1760], 0x10
jge 0x49b629
mov edx, dword [ebp - 0x1760]
imul edx, edx, 0xa
xor eax, eax
mov al, byte [ebp + edx - 0x17f7]
test eax, eax
jne 0x49b609
jmp 0x49b5d9
push 6
mov ecx, dword [ebp - 0x1760]
imul ecx, ecx, 0xa
lea edx, [ebp + ecx - 0x1800]
push edx
push 0x542e90
call fcn.004bee30
add esp, 0xc
mov eax, dword [ebp - 0x1c54]
mov dword [eax + 0x218], 0
mov ecx, dword [ebp - 0x1c54]
mov dword [ecx + 0x21c], 0xffff
mov edx, dword [ebp - 0x1c54]
mov dword [edx + 0x220], 0
mov dword [ebp - 0x1760], 1
jmp 0x49b674
mov eax, dword [ebp - 0x1760]
add eax, 1
mov dword [ebp - 0x1760], eax
mov ecx, dword [0x542f78]
add ecx, 1
cmp dword [ebp - 0x1760], ecx
jge 0x49b6e2
mov edx, dword [ebp - 0x1760]
xor eax, eax
mov al, byte [edx + 0x543b78]
test eax, eax
je 0x49b6e0
mov ecx, dword [ebp - 0x1760]
sub ecx, 1
mov dword [ebp - 0x1c64], ecx
fild dword [ebp - 0x1c64]
sub esp, 8
fstp qword [esp]
push 0x40000000
push 0
call fcn.004bff80
add esp, 0x10
call fcn.004c0210
mov edx, dword [ebp - 0x1c54]
mov ecx, dword [edx + 0x218]
add ecx, eax
mov edx, dword [ebp - 0x1c54]
mov dword [edx + 0x218], ecx
jmp 0x49b665
mov eax, dword [ebp - 0x1c54]
xor ecx, ecx
mov cl, byte [eax + 0x118]
test ecx, ecx
je 0x49b76a
push 6
push 0
lea edx, [ebp - 0x1c38]
push edx
call fcn.004be790
add esp, 0xc
mov byte [ebp - 0x1c38], 0xf0
mov byte [ebp - 0x1c37], 0x50
mov byte [ebp - 0x1c36], 1
mov eax, dword [ebp - 0x1c54]
mov ecx, dword [eax + 0x218]
sar ecx, 8
and ecx, 0xff
mov byte [ebp - 0x1c35], cl
mov edx, dword [ebp - 0x1c54]
mov eax, dword [edx + 0x218]
and eax, 0xff
mov byte [ebp - 0x1c34], al
lea ecx, [ebp - 0x1c38]
push ecx
mov edx, dword [ebp - 0x1c54]
add edx, 0x119
push edx
call fcn.004a75ab
add esp, 8
cmp dword [0x54306c], 0
je 0x49b829
mov dword [ebp - 0x1760], 1
jmp 0x49b792
mov eax, dword [ebp - 0x1760]
add eax, 1
mov dword [ebp - 0x1760], eax
cmp dword [ebp - 0x1760], 0x11
jge 0x49b829
mov ecx, dword [ebp - 0x1760]
xor edx, edx
mov dl, byte [ecx + 0x543b78]
cmp edx, 1
jne 0x49b7ec
mov eax, dword [ebp - 0x1760]
mov ecx, dword [ebp - 0x1c54]
mov dword [ecx + eax*4 + 0x270], 1
push 1
mov edx, dword [ebp - 0x1760]
add edx, 0x608
push edx
mov ecx, dword [ebp - 0x1c54]
call fcn.004e2094
mov ecx, eax
call fcn.00404d60
jmp 0x49b824
mov eax, dword [ebp - 0x1760]
mov ecx, dword [ebp - 0x1c54]
mov dword [ecx + eax*4 + 0x270], 0
push 0
mov edx, dword [ebp - 0x1760]
add edx, 0x608
push edx
mov ecx, dword [ebp - 0x1c54]
call fcn.004e2094
mov ecx, eax
call fcn.00404d60
jmp 0x49b783
mov eax, dword [ebp - 0x1c54]
cmp dword [eax + 0x16b8], 0
jne 0x49b86d
push 0
push 1
mov ecx, dword [ebp - 0x1c54]
call fcn.0049fce5
push 0x54d
mov ecx, dword [ebp - 0x1c54]
call fcn.004e2094
mov dword [ebp - 0x1c20], eax
push str.Scan_Drive
mov ecx, dword [ebp - 0x1c20]
call fcn.004e232b
mov dword [0x542e8c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c30]
call fcn.004e2e21
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.004e2e21
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret