Function at 0x420f07
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
mov dword [ebp - 0x920], ecx
mov dword [ebp - 0x818], 0x50bc18
mov dword [ebp - 0x814], 0x50bc1c
mov eax, dword [ebp - 0x920]
mov ecx, dword [eax + 0x103c]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x920]
mov eax, dword [edx + ecx + 0x10e4]
mov dword [ebp - 4], eax
push 0xa
push 0
lea ecx, [ebp - 0x10]
push ecx
call fcn.004a9cd0
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x5291f4]
mov ecx, dword [ebp + eax*4 - 0x818]
push ecx
push str._S_d
lea edx, [ebp - 0x10]
push edx
call fcn.004aa1dd
add esp, 0x10
mov eax, 1
test eax, eax
je 0x420f90
mov dword [ebp - 0x924], 0
jmp 0x420fa7
lea ecx, [ebp - 0x10]
push ecx
push str._ParseFlashDataBaseInfo_:__s_n
call fcn.00410eb0
add esp, 8
mov dword [ebp - 0x924], eax
push 0x800
push 0
lea edx, [ebp - 0x810]
push edx
call fcn.004a9cd0
add esp, 0xc
mov eax, dword [ebp - 0x920]
add eax, 0x6ed
push eax
push 0x800
lea ecx, [ebp - 0x810]
push ecx
push 0x5282ec
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x920]
add eax, 0x1040
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x42104f
push 0x104
push 0
lea ecx, [ebp - 0x91c]
push ecx
call fcn.004a9cd0
add esp, 0xc
mov edx, dword [ebp - 0x920]
add edx, 0x6ed
push edx
lea eax, [ebp - 0x10]
push eax
push str.Cant_find_Tag_s_at__s_file
lea ecx, [ebp - 0x91c]
push ecx
call fcn.004aa1dd
add esp, 0x10
push 0
push 0x50bc68
lea edx, [ebp - 0x91c]
push edx
mov ecx, dword [ebp - 0x920]
call fcn.004cbd0e
xor eax, eax
jmp 0x42135b
push 0x50
mov eax, dword [ebp - 0x920]
mov ecx, dword [eax + 0x103c]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x920]
lea eax, [edx + ecx + 0x10e8]
push eax
lea ecx, [ebp - 0x810]
push ecx
call fcn.004aa270
add esp, 0xc
test eax, eax
je 0x42109f
push 0
push 0x50bc70
push str.Flash_Name_is_mismatch
mov ecx, dword [ebp - 0x920]
call fcn.004cbd0e
xor eax, eax
jmp 0x42135b
push 0x50
mov edx, dword [ebp - 0x920]
mov eax, dword [edx + 0x103c]
imul eax, eax, 0x54
mov ecx, dword [ebp - 0x920]
lea edx, [ecx + eax + 0x10e8]
push edx
mov eax, dword [ebp - 0x920]
add eax, 0x86
push eax
call fcn.004aa370
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x810]
push ecx
call fcn.004a9cd0
add esp, 0xc
mov edx, dword [ebp - 0x920]
add edx, 0x6ed
push edx
push 0x800
lea eax, [ebp - 0x810]
push eax
push 0x5282f0
mov ecx, dword [ebp - 0x920]
mov edx, dword [ecx + 0x103c]
imul edx, edx, 0x54
mov eax, dword [ebp - 0x920]
lea ecx, [eax + edx + 0x10e8]
push ecx
mov edx, dword [ebp - 0x920]
add edx, 0x1040
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4211ae
push 0x104
push 0
lea eax, [ebp - 0x91c]
push eax
call fcn.004a9cd0
add esp, 0xc
mov ecx, dword [ebp - 0x920]
add ecx, 0x6ed
push ecx
mov edx, dword [ebp - 0x920]
mov eax, dword [edx + 0x103c]
imul eax, eax, 0x54
mov ecx, dword [ebp - 0x920]
lea edx, [ecx + eax + 0x10e8]
push edx
push 0x50bc90
lea eax, [ebp - 0x91c]
push eax
call fcn.004aa1dd
add esp, 0x10
push 0
push 0x50bcc0
lea ecx, [ebp - 0x91c]
push ecx
mov ecx, dword [ebp - 0x920]
call fcn.004cbd0e
xor eax, eax
jmp 0x42135b
movsx edx, byte [ebp - 0x810]
test edx, edx
jne 0x42122d
push 0x104
push 0
lea eax, [ebp - 0x91c]
push eax
call fcn.004a9cd0
add esp, 0xc
mov ecx, dword [ebp - 0x920]
add ecx, 0x6ed
push ecx
mov edx, dword [ebp - 0x920]
mov eax, dword [edx + 0x103c]
imul eax, eax, 0x54
mov ecx, dword [ebp - 0x920]
lea edx, [ecx + eax + 0x10e8]
push edx
push str.Cant_find_flash_information_for__s_at__s_file
lea eax, [ebp - 0x91c]
push eax
call fcn.004aa1dd
add esp, 0x10
push 0
push 0x50bcf8
lea ecx, [ebp - 0x91c]
push ecx
mov ecx, dword [ebp - 0x920]
call fcn.004cbd0e
xor eax, eax
jmp 0x42135b
mov edx, dword [ebp - 0x920]
add edx, 0x8f5
push edx
lea eax, [ebp - 0x810]
push eax
push str.FLASHDBINFO
push 0x50bd0c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
lea ecx, [ebp - 0x810]
push ecx
mov edx, dword [ebp - 0x920]
add edx, 0x86
push edx
mov ecx, dword [ebp - 0x920]
call fcn.0042135f
push 0xa
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.004a9cd0
add esp, 0xc
mov ecx, dword [ebp - 0x920]
xor edx, edx
mov dl, byte [ecx + 0x15a]
push edx
push 0x50bd14
lea eax, [ebp - 0x10]
push eax
call fcn.004aa1dd
add esp, 0xc
mov ecx, dword [ebp - 0x920]
add ecx, 0x8f5
push ecx
lea edx, [ebp - 0x10]
push edx
push str.RETRYTABLEIDX
push 0x50bd2c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [0x5291ec], 0
je 0x42132d
mov eax, dword [ebp - 0x920]
add eax, 0xafd
push eax
push 7
mov ecx, dword [ebp - 0x920]
add ecx, 0x2d6
push ecx
push 0
mov edx, dword [ebp - 0x920]
add edx, 0x86
push edx
push str.SM2258XT_FWTAG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x920]
movsx ecx, byte [eax + 0x2d6]
test ecx, ecx
jne 0x42132d
push 0
push 0x50bd44
push str.Cant_find_corresponding_FW_TAG__maybe_FW_doesnt_support_this_flash_now.
mov ecx, dword [ebp - 0x920]
call fcn.004cbd0e
xor eax, eax
jmp 0x42135b
mov edx, dword [ebp - 0x920]
add edx, 0x8f5
push edx
mov eax, dword [ebp - 0x920]
add eax, 0x2d6
push eax
push 0x50bd98
push 0x50bda0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, 1
mov esp, ebp
pop ebp
ret