Function at 0x41b958
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
mov dword [ebp - 0x920], ecx
mov dword [ebp - 0x818], 0x54b40c
mov dword [ebp - 0x814], 0x54b410
mov eax, dword [ebp - 0x920]
mov ecx, dword [eax + 0xde4]
imul ecx, ecx, 0x44
mov edx, dword [ebp - 0x920]
mov eax, dword [edx + ecx + 0xe7c]
mov dword [ebp - 4], eax
push 0xa
push 0
lea ecx, [ebp - 0x10]
push ecx
call fcn.004e8440
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x56cee0]
mov ecx, dword [ebp + eax*4 - 0x818]
push ecx
push str._S_d
lea edx, [ebp - 0x10]
push edx
call fcn.004e894d
add esp, 0x10
mov eax, 1
test eax, eax
je 0x41b9e1
mov dword [ebp - 0x924], 0
jmp 0x41b9f8
lea ecx, [ebp - 0x10]
push ecx
push str._ParseFlashDataBaseInfo_:__s_n
call fcn.0040b860
add esp, 8
mov dword [ebp - 0x924], eax
push 0x800
push 0
lea edx, [ebp - 0x810]
push edx
call fcn.004e8440
add esp, 0xc
mov eax, dword [ebp - 0x920]
add eax, 0x496
push eax
push 0x800
lea ecx, [ebp - 0x810]
push ecx
push 0x56bf68
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x920]
add eax, 0xde8
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x41baa0
push 0x104
push 0
lea ecx, [ebp - 0x91c]
push ecx
call fcn.004e8440
add esp, 0xc
mov edx, dword [ebp - 0x920]
add edx, 0x496
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.004e894d
add esp, 0x10
push 0
push 0x54b45c
lea edx, [ebp - 0x91c]
push edx
mov ecx, dword [ebp - 0x920]
call fcn.0050a80e
xor eax, eax
jmp 0x41bdac
push 0x40
mov eax, dword [ebp - 0x920]
mov ecx, dword [eax + 0xde4]
imul ecx, ecx, 0x44
mov edx, dword [ebp - 0x920]
lea eax, [edx + ecx + 0xe80]
push eax
lea ecx, [ebp - 0x810]
push ecx
call fcn.004e89e0
add esp, 0xc
test eax, eax
je 0x41baf0
push 0
push 0x54b464
push str.Flash_Name_is_mismatch
mov ecx, dword [ebp - 0x920]
call fcn.0050a80e
xor eax, eax
jmp 0x41bdac
push 0x40
mov edx, dword [ebp - 0x920]
mov eax, dword [edx + 0xde4]
imul eax, eax, 0x44
mov ecx, dword [ebp - 0x920]
lea edx, [ecx + eax + 0xe80]
push edx
mov eax, dword [ebp - 0x920]
add eax, 0xaddc
push eax
call fcn.004e8ae0
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x810]
push ecx
call fcn.004e8440
add esp, 0xc
mov edx, dword [ebp - 0x920]
add edx, 0x496
push edx
push 0x800
lea eax, [ebp - 0x810]
push eax
push 0x56bf6c
mov ecx, dword [ebp - 0x920]
mov edx, dword [ecx + 0xde4]
imul edx, edx, 0x44
mov eax, dword [ebp - 0x920]
lea ecx, [eax + edx + 0xe80]
push ecx
mov edx, dword [ebp - 0x920]
add edx, 0xde8
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x41bbff
push 0x104
push 0
lea eax, [ebp - 0x91c]
push eax
call fcn.004e8440
add esp, 0xc
mov ecx, dword [ebp - 0x920]
add ecx, 0x496
push ecx
mov edx, dword [ebp - 0x920]
mov eax, dword [edx + 0xde4]
imul eax, eax, 0x44
mov ecx, dword [ebp - 0x920]
lea edx, [ecx + eax + 0xe80]
push edx
push 0x54b484
lea eax, [ebp - 0x91c]
push eax
call fcn.004e894d
add esp, 0x10
push 0
push 0x54b4b4
lea ecx, [ebp - 0x91c]
push ecx
mov ecx, dword [ebp - 0x920]
call fcn.0050a80e
xor eax, eax
jmp 0x41bdac
movsx edx, byte [ebp - 0x810]
test edx, edx
jne 0x41bc7e
push 0x104
push 0
lea eax, [ebp - 0x91c]
push eax
call fcn.004e8440
add esp, 0xc
mov ecx, dword [ebp - 0x920]
add ecx, 0x496
push ecx
mov edx, dword [ebp - 0x920]
mov eax, dword [edx + 0xde4]
imul eax, eax, 0x44
mov ecx, dword [ebp - 0x920]
lea edx, [ecx + eax + 0xe80]
push edx
push str.Cant_find_flash_information_for__s_at__s_file
lea eax, [ebp - 0x91c]
push eax
call fcn.004e894d
add esp, 0x10
push 0
push 0x54b4ec
lea ecx, [ebp - 0x91c]
push ecx
mov ecx, dword [ebp - 0x920]
call fcn.0050a80e
xor eax, eax
jmp 0x41bdac
mov edx, dword [ebp - 0x920]
add edx, 0x69e
push edx
lea eax, [ebp - 0x810]
push eax
push str.FLASHDBINFO
push 0x54b500
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
lea ecx, [ebp - 0x810]
push ecx
mov edx, dword [ebp - 0x920]
add edx, 0xaddc
push edx
mov ecx, dword [ebp - 0x920]
call fcn.0041bdb0
push 0xa
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.004e8440
add esp, 0xc
mov ecx, dword [ebp - 0x920]
xor edx, edx
mov dl, byte [ecx + 0xaea0]
push edx
push 0x54b508
lea eax, [ebp - 0x10]
push eax
call fcn.004e894d
add esp, 0xc
mov ecx, dword [ebp - 0x920]
add ecx, 0x69e
push ecx
lea edx, [ebp - 0x10]
push edx
push str.RETRYTABLEIDX
push 0x54b520
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [0x56ced8], 0
je 0x41bd7e
mov eax, dword [ebp - 0x920]
add eax, 0x8a6
push eax
push 7
mov ecx, dword [ebp - 0x920]
add ecx, 0xb01c
push ecx
push 0
mov edx, dword [ebp - 0x920]
add edx, 0xaddc
push edx
push str.SM2258XT_FWTAG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x920]
movsx ecx, byte [eax + 0xb01c]
test ecx, ecx
jne 0x41bd7e
push 0
push 0x54b538
push str.Cant_find_corresponding_FW_TAG__maybe_FW_doesnt_support_this_flash_now.
mov ecx, dword [ebp - 0x920]
call fcn.0050a80e
xor eax, eax
jmp 0x41bdac
mov edx, dword [ebp - 0x920]
add edx, 0x69e
push edx
mov eax, dword [ebp - 0x920]
add eax, 0xb01c
push eax
push 0x54b58c
push 0x54b594
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, 1
mov esp, ebp
pop ebp
ret