Function at 0x41ae40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8241
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.004a57ee
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.004a57ee
call fcn.00415650
add esp, 4
cmp eax, edi
jne 0x41af04
push 0x4e0484
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 0x4d9198
push ecx
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 8]
push 4
push edx
call fcn.0048f160
mov esi, eax
add esp, 8
cmp esi, edi
mov dword [0x4e6100], esi
ja 0x41af39
push str.ERROR_FLASH_ITEM_COUNT
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x44]
push 0x4d9198
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 0x41af7f
mov dword [ebp - 0x14], esi
mov esi, 0x296
mov edx, ebx
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
js 0x41af7b
mov ecx, 0xa5
xor eax, eax
mov edi, edx
add edx, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x41af61
mov eax, ebx
jmp 0x41af81
xor eax, eax
mov ecx, dword [0x4e6100]
mov edx, dword [ebp + 8]
push ecx
push 0
push eax
push 4
push edx
mov dword [ebp - 0x20], eax
call fcn.0048f310
add esp, 0x14
test eax, eax
jne 0x41afbb
push str.ERROR_FlashListApi_ReadItem_r_n
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x40]
push 0x4d9198
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.0041c090
mov edx, dword [0x4e6100]
lea ebx, [edx + esi]
test ebx, ebx
jne 0x41b030
mov esi, dword [edi + 4]
test esi, esi
je 0x41b023
mov ebx, dword [edi + 8]
mov eax, ebx
dec ebx
test eax, eax
je 0x41b010
push 0
mov ecx, esi
call fcn.0041c520
add esi, 0x10
jmp 0x41affb
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 0x41b180
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x41b0a1
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 0x41b093
mov dword [ebp - 0x30], esi
test esi, esi
mov byte [ebp - 4], 6
je 0x41b087
mov ecx, esi
call fcn.0041c540
add esi, 0x10
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], esi
jmp 0x41b068
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
jmp 0x41b180
mov esi, dword [edi + 0xc]
cmp ebx, esi
jg 0x41b0ed
mov eax, dword [edi + 8]
cmp eax, ebx
jge 0x41b0c7
mov edx, ebx
sub edx, eax
shl eax, 4
add eax, ecx
push edx
push eax
call fcn.0041c490
mov dword [edi + 8], ebx
jmp 0x41b180
jle 0x41b0bf
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 0x41b0bf
push 0
mov ecx, esi
call fcn.0041c520
mov eax, dword [ebp - 0x1c]
add esi, 0x10
jmp 0x41b0d2
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x41b118
mov eax, dword [edi + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x41b10c
mov eax, 4
jmp 0x41b118
cmp eax, 0x400
jle 0x41b118
mov eax, 0x400
add eax, esi
cmp ebx, eax
mov dword [ebp - 0x14], eax
jl 0x41b124
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.0041c490
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 [0x4e6100]
jae 0x41b1e9
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 0x4df2f8
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebx + 0x10]
lea ecx, [esi + 4]
push eax
push 0x4df2f8
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 0x41b182
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor edi, edi
cmp edi, dword [ebp - 0x2c]
jae 0x41b307
mov ecx, dword [0x4e6100]
mov edx, dword [ebp + 0xc]
push edi
push 0x4dfa84
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 0x4e5a9c
push str.Brand
push eax
call ebx
lea ecx, [ebp - 0x150]
push ecx
mov ecx, esi
call fcn.004a5764
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x150]
push edx
push 0x104
push eax
push 0x4e5a9c
lea ecx, [ebp - 0x28]
push str.FlashName
push ecx
call ebx
lea edx, [ebp - 0x150]
lea ecx, [esi + 4]
push edx
call fcn.004a5764
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x150]
push eax
push 0x104
push ecx
push 0x4e5a9c
lea edx, [ebp - 0x28]
push 0x4e0564
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 0x41b2e9
mov eax, dword [ebp - 0x14]
and eax, 0xff
inc cl
mov dl, byte [ebp + eax*2 - 0x3c]
mov byte [eax + esi + 8], dl
jmp 0x41b2cd
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push eax
push 0
push 0x4e0eb8
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [esi + 0xe], al
inc edi
jmp 0x41b1f1
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41b317
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