Function at 0x42c040
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a87e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x504
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x51c], 0
call sub.MFC42.DLL_CString::CString_1
mov ebp, dword [esp + 0x52c]
mov edi, dword [esp + 0x530]
cmp ebp, edi
mov byte [esp + 0x51c], 1
jae 0x42bb6c
lea eax, [esp + 0x524]
push str.FlashList.afl
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x520], 2
call fcn.004a5776
lea ecx, [esp + 0x10]
mov byte [esp + 0x51c], 1
call sub.MFC42.DLL_CString::CString
mov ecx, 0xa5
xor eax, eax
lea edi, [esp + 0x74]
push 1
rep stosd dword es:[edi], eax
lea edx, [esp + 0x78]
push ebp
stosw word es:[edi], ax
mov eax, dword [esp + 0x1c]
mov ebx, 4
push edx
push ebx
push eax
call fcn.0048f310
add esp, 0x14
test eax, eax
jne 0x42ba32
lea ecx, [esp + 0x10]
push 0x4d8340
push ecx
mov dword [esp + 0x18], 0xffffffff
call sub.MSVCRT.dll__CxxThrowException
lea edx, [esp + 0x74]
push edx
push 0x4df2f8
push esi
call sub.MFC42.DLL_CString::Format
lea eax, [esp + 0x90]
lea edi, [esi + 4]
push eax
push 0x4df2f8
push edi
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xc0]
lea ecx, [esi + 8]
add esp, 0x18
mov dword [ecx], edx
mov edx, dword [esp + 0xb0]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xac]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov cx, word [esp + 0xaa]
xor edx, edx
mov byte [esi + 0x19], cl
mov dl, ch
mov ecx, eax
and ecx, 0xff
cmp ah, 0x19
mov byte [esi + 0x18], dl
mov dword [esi + 0x1c], ecx
ja 0x42baad
mov byte [esi + 0x20], 1
jmp 0x42bad1
cmp ah, 0x21
ja 0x42bab8
mov byte [esi + 0x20], 1
jmp 0x42bad1
cmp ah, 0x32
ja 0x42bac3
mov byte [esi + 0x20], 2
jmp 0x42bad1
cmp ah, 0x42
ja 0x42bace
mov byte [esi + 0x20], 3
jmp 0x42bad1
mov byte [esi + 0x20], bl
mov edx, dword [esp + 0xae]
mov al, byte [esp + 0xb2]
mov cx, word [esp + 0xb3]
mov dword [esi + 0x24], edx
mov dl, byte [esp + 0xb5]
mov byte [esi + 0x28], al
mov al, byte [esp + 0xb6]
mov word [esi + 0x2a], cx
mov cx, word [esp + 0xb7]
mov byte [esi + 0x2c], dl
mov dx, word [esp + 0xb9]
mov byte [esi + 0x2d], al
mov ax, word [esp + 0xbb]
mov word [esi + 0x2e], cx
mov cx, word [esp + 0xbd]
mov word [esi + 0x30], dx
mov dl, byte [esp + 0xbf]
mov word [esi + 0x32], ax
mov al, byte [esp + 0xc0]
mov word [esi + 0x34], cx
mov cl, byte [esp + 0xc1]
mov byte [esi + 0x36], dl
mov dl, byte [esp + 0xc2]
mov byte [esi + 0x37], al
mov al, byte [esp + 0xc5]
mov byte [esi + 0x38], cl
mov byte [esi + 0x39], dl
mov byte [esi + 0x3a], al
jmp 0x42bdfe
lea ecx, [esp + 0x524]
push 0x4df34c
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x520], 3
call fcn.004a5776
lea ecx, [esp + 0x10]
mov byte [esp + 0x51c], 1
call sub.MFC42.DLL_CString::CString
sub ebp, edi
lea eax, [esp + 0x18]
push ebp
push 0x4dfa84
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x30c]
push ecx
push 0x104
push edx
push 0x4e5a9c
lea eax, [esp + 0x28]
push str.Brand
push eax
call ebx
lea ecx, [esp + 0x30c]
push ecx
mov ecx, esi
call fcn.004a5764
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30c]
push edx
push 0x104
push eax
push 0x4e5a9c
lea ecx, [esp + 0x28]
push str.FlashName
push ecx
call ebx
lea edi, [esi + 4]
lea edx, [esp + 0x30c]
push edx
mov ecx, edi
call fcn.004a5764
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30c]
push eax
push 0x104
push ecx
push 0x4e5a9c
lea edx, [esp + 0x28]
push 0x4e0564
push edx
call ebx
lea eax, [esp + 0x2a]
lea ecx, [esp + 0x28]
mov ebx, dword [sym.imp.MSVCRT.dll_sscanf]
push eax
lea edx, [esp + 0x2a]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x2e]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
lea eax, [esp + 0x324]
push str.0x_02hx_0x_02hx_0x_02hx_0x_02hx_0x_02hx_0x_02hx
push eax
call ebx
add esp, 0x20
lea ecx, [esi + 8]
lea eax, [esp + 0x20]
mov ebp, 6
mov dl, byte [eax]
add eax, 2
mov byte [ecx], dl
inc ecx
dec ebp
jne 0x42bc8e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push 0
push 0x4e0eb8
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [esp + 0x14]
mov byte [esi + 0x2c], al
push edx
lea eax, [esp + 0x310]
push 0x104
push eax
push 0x4e5a9c
lea ecx, [esp + 0x28]
push str.FlashCfg
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x70]
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
lea edx, [esp + 0x354]
push str._lu__lu__lu__lu__lu__lu__lu__lu__lu__lu__lu__lu__lu__lu__lu__lu__lu__lu
push edx
call ebx
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
add esp, 0x50
xor eax, eax
test edx, edx
setne al
mov dword [esi + 0x1c], eax
mov al, byte [esp + 0x34]
cmp al, 0x19
mov dword [esi + 0x24], ecx
mov ebx, 4
ja 0x42bd71
mov byte [esi + 0x20], 1
jmp 0x42bd92
cmp al, 0x21
ja 0x42bd7b
mov byte [esi + 0x20], 1
jmp 0x42bd92
cmp al, 0x32
ja 0x42bd85
mov byte [esi + 0x20], 2
jmp 0x42bd92
cmp al, 0x42
ja 0x42bd8f
mov byte [esi + 0x20], 3
jmp 0x42bd92
mov byte [esi + 0x20], bl
mov dl, byte [esp + 0x38]
mov al, byte [esp + 0x3c]
mov cx, word [esp + 0x40]
mov byte [esi + 0x3a], dl
mov dx, word [esp + 0x44]
mov byte [esi + 0x2d], al
mov ax, word [esp + 0x48]
mov word [esi + 0x30], dx
mov dl, byte [esp + 0x50]
mov word [esi + 0x32], ax
mov al, byte [esp + 0x54]
mov word [esi + 0x2e], cx
mov cx, word [esp + 0x4c]
mov byte [esi + 0x36], dl
mov dl, byte [esp + 0x5c]
mov byte [esi + 0x38], al
mov al, byte [esp + 0x60]
mov word [esi + 0x34], cx
mov cl, byte [esp + 0x58]
mov byte [esi + 0x37], dl
mov byte [esi + 0x28], al
mov eax, dword [esp + 0x6c]
xor edx, edx
mov byte [esi + 0x39], cl
mov cx, word [esp + 0x64]
mov dl, ah
mov word [esi + 0x2a], cx
mov byte [esi + 0x18], dl
mov byte [esi + 0x19], al
mov eax, dword [esi]
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
push str.SanDisk
push eax
mov byte [esi + 0x44], 0
call ebp
add esp, 8
test eax, eax
jne 0x42be8d
test byte [esi + 0xa], 3
jbe 0x42be23
or byte [esi + 0x44], 1
mov ecx, dword [edi]
push str.SDTNKJBHSM_8192
push ecx
call ebp
add esp, 8
test eax, eax
je 0x42be89
mov edx, dword [edi]
push str.SDTNKHHSM_16384
push edx
call ebp
add esp, 8
test eax, eax
je 0x42be89
mov eax, dword [edi]
push str.SDTNKHHSM_32768
push eax
call ebp
add esp, 8
test eax, eax
je 0x42be89
mov ecx, dword [edi]
push str.SDTNKJBHSM_8192_16bit_IO_
push ecx
call ebp
add esp, 8
test eax, eax
je 0x42be89
mov edx, dword [edi]
push str.SDTNKHHSM_32768_16bit_IO_
push edx
call ebp
add esp, 8
test eax, eax
je 0x42be89
mov eax, dword [edi]
push str.SDTNKHHSM_16384_16bit_IO_
push eax
call ebp
add esp, 8
test eax, eax
jne 0x42be8d
or byte [esi + 0x44], 2
xor eax, eax
mov al, byte [esi + 0x38]
cmp eax, 3
ja case.default.0x42be9b
jmp dword [eax*4 + 0x42c030]
mov byte [esi + 0x45], 2
jmp 0x42bebb
mov cl, byte [esi + 0x2d]
shl cl, 1
mov byte [esi + 0x45], cl
jmp 0x42bebb
mov byte [esi + 0x45], bl
jmp 0x42bebb
mov byte [esi + 0x45], 1
mov ax, word [esi + 0x2e]
mov edx, eax
and edx, 0xffff
and edx, 0x800003ff
jns 0x42bed7
dec edx
or edx, 0xfffffc00
inc edx
jne 0x42bee7
movzx cx, byte [esi + 0x2d]
imul ecx, eax
mov word [esi + 0x40], cx
jmp 0x42bef5
movzx dx, byte [esi + 0x2d]
imul dx, word [esi + 0x30]
mov word [esi + 0x40], dx
mov al, byte [esi + 0x32]
mov byte [esi + 0x43], 0x70
mov byte [esi + 0x46], al
xor eax, eax
mov ax, word [esi + 0x32]
mov byte [esi + 0x42], 0
cmp eax, 1
jle 0x42bf21
mov cl, byte [esi + 0x42]
mov edx, 1
inc cl
shl edx, cl
mov byte [esi + 0x42], cl
cmp eax, edx
jg 0x42bf0e
mov eax, dword [esp + 0x528]
mov ecx, dword [esp + 0x524]
and eax, 0xff
lea edx, [esp + 0x14]
push eax
push ecx
push str._sCTL_02XFlashList.ini
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004a57ee
mov ecx, esi
call fcn.0042b8d0
test eax, eax
jne 0x42bf7a
lea ecx, [esp + 0x10]
push 0x4d8340
push ecx
mov dword [esp + 0x18], 0x3ff00
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esp + 0x14]
mov edi, dword [edi]
push edx
lea eax, [esp + 0x414]
push 0x104
push eax
push 0x4e5a9c
push str.BinFileName
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x410]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push eax
lea ecx, [esi + 0x3c]
mov byte [esp + 0x520], bl
call fcn.004a5776
lea ecx, [esp + 0x10]
mov byte [esp + 0x51c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x51c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x524]
mov dword [esp + 0x51c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x514]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x510
ret 0x10
lea edx, [esp + 0x10]
push 0x4d8340
push edx
mov dword [esp + 0x18], 0xffffffff
call sub.MSVCRT.dll__CxxThrowException
mov bh, 0xbe
inc edx
add byte [edx - 0x57ffbd42], ah
mov esi, 0xbeb20042
inc edx
add byte [edx - 1], ch
push 0xffffffffffffffff
push 0x4a8816
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
mov ebp, ecx
mov ebx, 1
push str.SCAN
lea ecx, [esp + 0x134]
mov dword [esp + 0x124], ebx
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x42c202
push str.SORT
lea ecx, [esp + 0x134]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x42c202
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
and eax, 0xff
lea edx, [esp + 8]
push eax
push ecx
push str._sCTL_02XFlashList.ini
push edx
mov byte [esp + 0x130], 2
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x130]
call sub.MFC42.DLL_CString::MakeUpper
push str..BIN
lea ecx, [esp + 0x134]
call sub.MFC42.DLL_CString::Find_1
add eax, 4
lea ecx, [esp + 0x130]
push eax
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push 0x104
push edx
push 0x4e5a9c
push eax
push str.MODULE_FETURE
mov byte [esp + 0x138], 3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x14]
test al, al
jne 0x42c154
lea ecx, [esp + 0x10]
push 0x4d8340
push ecx
mov dword [esp + 0x18], 0x30600
call sub.MSVCRT.dll__CxxThrowException
push esi
cmp al, 0x30
push edi
jl 0x42c16c
cmp al, 0x39
jg 0x42c16c
mov esi, dword [esp + 0x13c]
sub al, 0x30
mov byte [esi + 1], al
jmp 0x42c177
mov esi, dword [esp + 0x13c]
mov byte [esi + 1], 0
mov al, byte [esp + 0x1e]
cmp al, 0x30
jl 0x42c18a
cmp al, 0x39
jg 0x42c18a
sub al, 0x30
mov byte [esi + 2], al
jmp 0x42c18e
mov byte [esi + 2], 0
mov al, byte [esp + 0x20]
cmp al, 0x30
jl 0x42c1a5
cmp al, 0x39
jg 0x42c1a5
movsx edx, al
sub edx, 0x30
mov dword [esi + 4], edx
jmp 0x42c1ac
mov dword [esi + 4], 0
lea edi, [esi + 8]
lea eax, [esp + 0x22]
push edi
push 0x4dfa84
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
xor eax, eax
xor ecx, ecx
mov ax, word [ebp + 0x40]
mov cl, byte [esi + 2]
cdq
idiv ecx
xor edx, edx
add esp, 0xc
mov dx, word [edi]
cmp edx, eax
jle 0x42c1dd
mov word [edi], ax
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], bl
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
jmp 0x42c234
mov ecx, dword [esp + 0x134]
xor eax, eax
mov byte [ecx + 1], bl
mov byte [ecx + 2], bl
cmp byte [ebp + 0x36], bl
setne al
mov dword [ecx + 4], eax
mov ax, word [ebp + 0x40]
cmp ax, 0x400
jbe 0x42c22b
mov eax, 0x400
jmp 0x42c230
and eax, 0xffff
mov word [ecx + 8], ax
lea ecx, [esp + 0x128]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x130]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 0x10