Function at 0x4584c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a9516
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
mov esi, ecx
mov al, byte [esp + 0x148]
mov ebx, 1
test al, 0x80
mov dword [esp + 0x134], ebx
je 0x4586c2
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x13c]
and eax, 0xff
lea edx, [esp + 0x1c]
push eax
push ecx
push str._sCTL_02XFlashList.ini
push edx
mov byte [esp + 0x144], 2
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x144]
call sub.MFC42.DLL_CString::MakeUpper
push str..BIN
lea ecx, [esp + 0x148]
call sub.MFC42.DLL_CString::Find_1
add eax, 4
lea ecx, [esp + 0x144]
push eax
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push 0x104
push edx
push 0x4e5a9c
push eax
push str.MODULE_FETURE
mov byte [esp + 0x14c], 3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x28]
test al, al
jne 0x4585af
lea ecx, [esp + 0x24]
push 0x4d8340
push ecx
mov dword [esp + 0x2c], 0x30600
call sub.MSVCRT.dll__CxxThrowException
xor edx, edx
lea eax, [esp + 0x18]
mov dword [esp + 8], edx
lea ecx, [esp + 0x16]
mov dword [esp + 0xc], edx
push eax
mov dword [esp + 0x14], edx
push ecx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1a]
mov word [esp + 0x20], dx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1e]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x22]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x4c]
push str._hd__hd__hd__hd__hd__hd__hd__hd__hd
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
mov ecx, dword [esp + 0x178]
mov dl, byte [esp + 0x34]
mov al, byte [esp + 0x36]
mov bl, byte [esp + 0x44]
mov byte [ecx + 1], dl
mov edx, dword [esp + 0x38]
mov byte [ecx + 2], al
mov ax, word [esp + 0x3a]
and edx, 0xff
mov word [ecx + 8], ax
mov al, byte [esp + 0x3e]
mov dword [ecx + 4], edx
mov dl, byte [esp + 0x3c]
mov byte [ecx + 0xb], al
mov al, byte [esp + 0x40]
mov byte [ecx + 0xa], dl
mov dl, byte [esp + 0x42]
add esp, 0x2c
test al, al
mov byte [ecx + 0xc], al
mov byte [ecx + 0xd], dl
mov byte [ecx + 0xe], bl
jne 0x45865c
mov byte [ecx + 0xc], 4
test dl, dl
jne 0x458664
mov byte [ecx + 0xd], 2
mov al, byte [esp + 0x140]
cmp al, 0x10
je 0x45869a
cmp al, 0x13
je 0x45869a
mov eax, dword [esi + 0x4c]
push edi
mov edi, dword [esp + 0xe]
xor edx, edx
and edi, 0xff
div edi
mov edx, dword [esp + 0x12]
pop edi
and edx, 0xffff
cmp edx, eax
jae 0x458696
mov eax, edx
mov word [ecx + 8], ax
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString
mov ebx, 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], bl
call sub.MFC42.DLL_CString::CString
jmp 0x458702
mov eax, dword [esp + 0x14c]
xor ecx, ecx
mov byte [eax + 1], bl
mov byte [eax + 2], bl
cmp byte [esi + 0xe], bl
setne cl
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x4c]
cmp ecx, 0x400
jbe 0x4586ea
mov ecx, 0x400
mov word [eax + 8], cx
mov byte [eax + 0xa], 0
mov byte [eax + 0xb], 0
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
mov byte [eax + 0xe], 0
lea ecx, [esp + 0x13c]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x144]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x12c]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret 0x14