Function at 0x41c237
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
mov dword [ebp - 0x920], ecx
mov dword [ebp - 0x818], 0x54c5a0
mov dword [ebp - 0x814], 0x54c5a4
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.004e9480
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x56e374]
mov ecx, dword [ebp + eax*4 - 0x818]
push ecx
push str._S_d
lea edx, [ebp - 0x10]
push edx
call fcn.004e998d
add esp, 0x10
mov eax, 1
test eax, eax
je 0x41c2c0
mov dword [ebp - 0x924], 0
jmp 0x41c2d7
lea ecx, [ebp - 0x10]
push ecx
push str._ParseFlashDataBaseInfo_:__s_n
call fcn.0040c0c0
add esp, 8
mov dword [ebp - 0x924], eax
push 0x800
push 0
lea edx, [ebp - 0x810]
push edx
call fcn.004e9480
add esp, 0xc
mov eax, dword [ebp - 0x920]
add eax, 0x6ed
push eax
push 0x800
lea ecx, [ebp - 0x810]
push ecx
push 0x56d400
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 0x41c37f
push 0x104
push 0
lea ecx, [ebp - 0x91c]
push ecx
call fcn.004e9480
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.004e998d
add esp, 0x10
push 0
push 0x54c5f0
lea edx, [ebp - 0x91c]
push edx
mov ecx, dword [ebp - 0x920]
call fcn.0050b84e
xor eax, eax
jmp 0x41c68b
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.004e9a20
add esp, 0xc
test eax, eax
je 0x41c3cf
push 0
push 0x54c5f8
push str.Flash_Name_is_mismatch
mov ecx, dword [ebp - 0x920]
call fcn.0050b84e
xor eax, eax
jmp 0x41c68b
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.004e9b20
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x810]
push ecx
call fcn.004e9480
add esp, 0xc
mov edx, dword [ebp - 0x920]
add edx, 0x6ed
push edx
push 0x800
lea eax, [ebp - 0x810]
push eax
push 0x56d404
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 0x41c4de
push 0x104
push 0
lea eax, [ebp - 0x91c]
push eax
call fcn.004e9480
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 0x54c618
lea eax, [ebp - 0x91c]
push eax
call fcn.004e998d
add esp, 0x10
push 0
push 0x54c648
lea ecx, [ebp - 0x91c]
push ecx
mov ecx, dword [ebp - 0x920]
call fcn.0050b84e
xor eax, eax
jmp 0x41c68b
movsx edx, byte [ebp - 0x810]
test edx, edx
jne 0x41c55d
push 0x104
push 0
lea eax, [ebp - 0x91c]
push eax
call fcn.004e9480
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.004e998d
add esp, 0x10
push 0
push 0x54c680
lea ecx, [ebp - 0x91c]
push ecx
mov ecx, dword [ebp - 0x920]
call fcn.0050b84e
xor eax, eax
jmp 0x41c68b
mov edx, dword [ebp - 0x920]
add edx, 0x8f5
push edx
lea eax, [ebp - 0x810]
push eax
push str.FLASHDBINFO
push 0x54c694
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.0041c68f
push 0xa
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.004e9480
add esp, 0xc
mov ecx, dword [ebp - 0x920]
xor edx, edx
mov dl, byte [ecx + 0x15a]
push edx
push 0x54c69c
lea eax, [ebp - 0x10]
push eax
call fcn.004e998d
add esp, 0xc
mov ecx, dword [ebp - 0x920]
add ecx, 0x8f5
push ecx
lea edx, [ebp - 0x10]
push edx
push str.RETRYTABLEIDX
push 0x54c6b4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [0x56e36c], 0
je 0x41c65d
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 0x41c65d
push 0
push 0x54c6cc
push str.Cant_find_corresponding_FW_TAG__maybe_FW_doesnt_support_this_flash_now.
mov ecx, dword [ebp - 0x920]
call fcn.0050b84e
xor eax, eax
jmp 0x41c68b
mov edx, dword [ebp - 0x920]
add edx, 0x8f5
push edx
mov eax, dword [ebp - 0x920]
add eax, 0x2d6
push eax
push 0x54c720
push 0x54c728
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, 1
mov esp, ebp
pop ebp
ret