Function at 0x4212a2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
mov dword [ebp - 0x920], ecx
mov dword [ebp - 0x818], 0x50fc9c
mov dword [ebp - 0x814], 0x50fca0
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.004adbd0
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x52df44]
mov ecx, dword [ebp + eax*4 - 0x818]
push ecx
push str._S_d
lea edx, [ebp - 0x10]
push edx
call fcn.004ae0dd
add esp, 0x10
mov eax, 1
test eax, eax
je 0x42132b
mov dword [ebp - 0x924], 0
jmp 0x421342
lea ecx, [ebp - 0x10]
push ecx
push str._ParseFlashDataBaseInfo_:__s_n
call fcn.004110a0
add esp, 8
mov dword [ebp - 0x924], eax
push 0x800
push 0
lea edx, [ebp - 0x810]
push edx
call fcn.004adbd0
add esp, 0xc
mov eax, dword [ebp - 0x920]
add eax, 0x6ed
push eax
push 0x800
lea ecx, [ebp - 0x810]
push ecx
push 0x52d02c
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 0x4213ea
push 0x104
push 0
lea ecx, [ebp - 0x91c]
push ecx
call fcn.004adbd0
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.004ae0dd
add esp, 0x10
push 0
push 0x50fcec
lea edx, [ebp - 0x91c]
push edx
mov ecx, dword [ebp - 0x920]
call fcn.004cfc0e
xor eax, eax
jmp 0x4216f6
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.004ae170
add esp, 0xc
test eax, eax
je 0x42143a
push 0
push 0x50fcf4
push str.Flash_Name_is_mismatch
mov ecx, dword [ebp - 0x920]
call fcn.004cfc0e
xor eax, eax
jmp 0x4216f6
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.004ae270
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x810]
push ecx
call fcn.004adbd0
add esp, 0xc
mov edx, dword [ebp - 0x920]
add edx, 0x6ed
push edx
push 0x800
lea eax, [ebp - 0x810]
push eax
push 0x52d030
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 0x421549
push 0x104
push 0
lea eax, [ebp - 0x91c]
push eax
call fcn.004adbd0
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 0x50fd14
lea eax, [ebp - 0x91c]
push eax
call fcn.004ae0dd
add esp, 0x10
push 0
push 0x50fd44
lea ecx, [ebp - 0x91c]
push ecx
mov ecx, dword [ebp - 0x920]
call fcn.004cfc0e
xor eax, eax
jmp 0x4216f6
movsx edx, byte [ebp - 0x810]
test edx, edx
jne 0x4215c8
push 0x104
push 0
lea eax, [ebp - 0x91c]
push eax
call fcn.004adbd0
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.004ae0dd
add esp, 0x10
push 0
push 0x50fd7c
lea ecx, [ebp - 0x91c]
push ecx
mov ecx, dword [ebp - 0x920]
call fcn.004cfc0e
xor eax, eax
jmp 0x4216f6
mov edx, dword [ebp - 0x920]
add edx, 0x8f5
push edx
lea eax, [ebp - 0x810]
push eax
push str.FLASHDBINFO
push 0x50fd90
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.004216fa
push 0xa
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.004adbd0
add esp, 0xc
mov ecx, dword [ebp - 0x920]
xor edx, edx
mov dl, byte [ecx + 0x15a]
push edx
push 0x50fd98
lea eax, [ebp - 0x10]
push eax
call fcn.004ae0dd
add esp, 0xc
mov ecx, dword [ebp - 0x920]
add ecx, 0x8f5
push ecx
lea edx, [ebp - 0x10]
push edx
push str.RETRYTABLEIDX
push 0x50fdb0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [0x52df3c], 0
je 0x4216c8
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 0x4216c8
push 0
push 0x50fdc8
push str.Cant_find_corresponding_FW_TAG__maybe_FW_doesnt_support_this_flash_now.
mov ecx, dword [ebp - 0x920]
call fcn.004cfc0e
xor eax, eax
jmp 0x4216f6
mov edx, dword [ebp - 0x920]
add edx, 0x8f5
push edx
mov eax, dword [ebp - 0x920]
add eax, 0x2d6
push eax
push 0x50fe1c
push 0x50fe24
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, 1
mov esp, ebp
pop ebp
ret