Function at 0x4175a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a7c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp + 8]
xor edi, edi
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
call fcn.0045822c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::MakeLower
push str..ini
push str..afl
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Replace
push ecx
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
mov byte [ebp - 4], 2
call fcn.0045822c
call fcn.00412b60
add esp, 4
cmp eax, edi
jne 0x417664
push 0x492fe4
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov esi, eax
push str.ERROR_FILE_NO_EXISTS:
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp + 8]
lea edx, [ebp - 0x1c]
push ecx
push eax
push edx
mov byte [ebp - 4], 4
call sub.MFC42.DLL_operator
push esi
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
push eax
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x48]
push 0x48d8f8
push ecx
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 8]
push 4
push edx
call fcn.0044b4a0
mov esi, eax
add esp, 8
cmp esi, edi
mov dword [0x497730], esi
ja 0x417699
push str.ERROR_FLASH_ITEM_COUNT
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x44]
push 0x48d8f8
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, esi
shl eax, 5
add eax, esi
lea ecx, [eax + eax*4]
lea edx, [esi + ecx*2]
shl edx, 1
push edx
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x4176df
mov dword [ebp - 0x14], esi
mov esi, 0x296
mov edx, ebx
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
js 0x4176db
mov ecx, 0xa5
xor eax, eax
mov edi, edx
add edx, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x4176c1
mov eax, ebx
jmp 0x4176e1
xor eax, eax
mov ecx, dword [0x497730]
mov edx, dword [ebp + 8]
push ecx
push 0
push eax
push 4
push edx
mov dword [ebp - 0x20], eax
call fcn.0044b650
add esp, 0x14
test eax, eax
jne 0x41771b
push str.ERROR_FlashListApi_ReadItem_r_n
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x40]
push 0x48d8f8
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push str.ItemCnt
push str.FLASH_LIST
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [ebp + 0xc]
mov esi, eax
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [ebp - 0x2c], esi
call fcn.00418400
mov edx, dword [0x497730]
lea ebx, [edx + esi]
test ebx, ebx
jne 0x417790
mov esi, dword [edi + 4]
test esi, esi
je 0x417783
mov ebx, dword [edi + 8]
mov eax, ebx
dec ebx
test eax, eax
je 0x417770
push 0
mov ecx, esi
call fcn.00418890
add esi, 0x10
jmp 0x41775b
mov eax, dword [edi + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi + 4], 0
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
jmp 0x4178e0
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x417801
mov eax, ebx
shl eax, 4
push eax
mov dword [ebp - 0x30], eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp - 0x30]
mov esi, eax
mov edx, ecx
mov dword [edi + 4], eax
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], esi
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x14]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [ebp - 0x14], eax
je 0x4177f3
mov dword [ebp - 0x30], esi
test esi, esi
mov byte [ebp - 4], 6
je 0x4177e7
mov ecx, esi
call fcn.004188b0
add esi, 0x10
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], esi
jmp 0x4177c8
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
jmp 0x4178e0
mov esi, dword [edi + 0xc]
cmp ebx, esi
jg 0x41784d
mov eax, dword [edi + 8]
cmp eax, ebx
jge 0x417827
mov edx, ebx
sub edx, eax
shl eax, 4
add eax, ecx
push edx
push eax
call fcn.00418800
mov dword [edi + 8], ebx
jmp 0x4178e0
jle 0x41781f
mov esi, ebx
sub eax, ebx
shl esi, 4
add esi, ecx
mov ecx, eax
dec eax
test ecx, ecx
mov dword [ebp - 0x1c], eax
je 0x41781f
push 0
mov ecx, esi
call fcn.00418890
mov eax, dword [ebp - 0x1c]
add esi, 0x10
jmp 0x417832
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x417878
mov eax, dword [edi + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x41786c
mov eax, 4
jmp 0x417878
cmp eax, 0x400
jle 0x417878
mov eax, 0x400
add eax, esi
cmp ebx, eax
mov dword [ebp - 0x14], eax
jl 0x417884
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x14]
shl edx, 4
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [edi + 8]
mov esi, dword [edi + 4]
shl ecx, 4
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 8]
sub edx, ecx
shl ecx, 4
add ecx, eax
push edx
push ecx
call fcn.00418800
mov eax, dword [esi + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ecx
xor edi, edi
cmp edi, dword [0x497730]
jae 0x417949
mov edx, dword [ebp + 0xc]
mov eax, edi
shl eax, 5
mov ebx, dword [edx + 4]
mov edx, dword [ebp - 0x20]
add eax, edi
mov esi, edi
shl esi, 4
lea eax, [eax + eax*4]
add esi, ebx
lea ecx, [edi + eax*2]
lea ebx, [edx + ecx*2]
push ebx
push 0x492244
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebx + 0x10]
lea ecx, [esi + 4]
push eax
push 0x492244
push ecx
call sub.MFC42.DLL_CString::Format
lea edx, [ebx + 0x30]
lea eax, [esi + 8]
add esp, 0xc
inc edi
mov ecx, dword [edx]
mov dword [eax], ecx
mov dx, word [edx + 4]
mov word [eax + 4], dx
mov al, byte [ebx + 0x41]
mov byte [esi + 0xe], al
jmp 0x4178e2
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor edi, edi
cmp edi, dword [ebp - 0x2c]
jae 0x417a67
mov ecx, dword [0x497730]
mov edx, dword [ebp + 0xc]
push edi
push 0x4929dc
mov eax, dword [edx + 4]
lea esi, [ecx + edi]
shl esi, 4
add esi, eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea edx, [ebp - 0x150]
lea eax, [ebp - 0x28]
push ecx
push 0x104
push edx
push 0x4970cc
push str.Brand
push eax
call ebx
lea ecx, [ebp - 0x150]
push ecx
mov ecx, esi
call fcn.004581ae
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x150]
push edx
push 0x104
push eax
push 0x4970cc
lea ecx, [ebp - 0x28]
push str.FlashName
push ecx
call ebx
lea edx, [ebp - 0x150]
lea ecx, [esi + 4]
push edx
call fcn.004581ae
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x150]
push eax
push 0x104
push ecx
push 0x4970cc
lea edx, [ebp - 0x28]
push 0x4930a4
push edx
call ebx
lea eax, [ebp - 0x32]
lea ecx, [ebp - 0x34]
push eax
lea edx, [ebp - 0x36]
push ecx
lea eax, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x3a]
push eax
lea edx, [ebp - 0x3c]
push ecx
push edx
lea eax, [ebp - 0x150]
push str.0x_02hx_0x_02hx_0x_02hx_0x_02hx_0x_02hx_0x_02hx
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x20
xor cl, cl
cmp cl, 6
mov byte [ebp - 0x14], cl
jae 0x417a49
mov eax, dword [ebp - 0x14]
and eax, 0xff
inc cl
mov dl, byte [ebp + eax*2 - 0x3c]
mov byte [eax + esi + 8], dl
jmp 0x417a2d
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push eax
push 0
push 0x4939b8
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [esi + 0xe], al
inc edi
jmp 0x417951
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x417a77
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret