Function at 0x41e310
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b5e09
mov eax, dword fs:[0]
push eax
mov eax, 0x2290
call fcn.00494d10
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x228c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x22a4]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x2c], ebp
call fcn.00471eac
mov ecx, dword [eax + 4]
call fcn.0046b2c8
lea eax, [ebp + 0x23fc]
xor edi, edi
push eax
mov ecx, ebp
mov dword [esp + 0x22b0], edi
call fcn.004162e0
lea esi, [ebp + 0x190]
mov ecx, esi
call fcn.00455e10
test eax, eax
je 0x41e9a9
mov ebx, 1
push 0x4ef7cc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.00402560
mov byte [esp + 0x22ac], bl
mov dword [esp + 0x40], edi
call fcn.0046c2c1
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41e3ca
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x40]
push ecx
push str.DSPCode
mov ecx, esi
mov byte [esp + 0x22b4], 2
call fcn.00455cc0
cmp eax, 0xffffffff
je 0x41e8e0
cmp dword [esp + 0x40], 0
je 0x41e8e0
test eax, eax
jl 0x41e9c7
cmp eax, dword [ebp + 0x100]
jge 0x41e9c7
mov edx, dword [ebp + 0xfc]
lea eax, [edx + eax*4]
push eax
lea ecx, [esp + 0x24]
call fcn.00401bf0
mov esi, dword [esp + 0x20]
cmp dword [esi - 0xc], 0
je 0x41e95d
push 0x4c4450
push esi
call fcn.00495a5d
add esp, 8
test eax, eax
je 0x41e95d
lea ecx, [esp + 0x60]
call fcn.00475e73
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa2]
push ecx
mov byte [esp + 0x22b8], 3
mov word [esp + 0xa4], ax
call fcn.00494750
mov eax, dword [0x50b824]
add esp, 0xc
push 0x104
lea edx, [esp + 0x9c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x98]
push 0x5c
push ecx
call fcn.0049543c
xor edx, edx
lea edi, [esp + 0xa0]
add esp, 8
mov word [eax], dx
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41e4c0
xor eax, eax
mov ecx, 8
mov esi, str.BMFileType.ini
push 0x1ffe
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x2aa]
push ecx
mov word [esp + 0x2ac], ax
call fcn.00494750
add esp, 0xc
lea edx, [esp + 0x98]
push edx
push 0x1000
lea eax, [esp + 0x2a8]
push eax
push str.ChipDSPMap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
jne 0x41e562
push 1
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.Not_found_ChipID_DSPName_map_setting_in_BMFileType.ini_
call fcn.00402560
mov ecx, 0x50b7e0
call fcn.0040b710
lea ecx, [esp + 0x60]
mov byte [esp + 0x22ac], 2
call fcn.00475e9c
lea ecx, [esp + 0x20]
call fcn.00401480
lea ecx, [esp + 0x18]
call fcn.00401480
jmp 0x41ea70
lea ecx, [esp + 0x4c]
call fcn.0046e650
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x2a4]
push edx
mov byte [esp + 0x22b4], 4
call fcn.004589d0
mov esi, eax
add esp, 8
mov dword [esp + 0x38], esi
test esi, esi
jne 0x41e5c6
push 1
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.Not_found_ChipID_DSPName_map_setting_in_BMFileType.ini_
call fcn.00402560
mov ecx, 0x50b7e0
call fcn.0040b710
lea ecx, [esp + 0x4c]
mov byte [esp + 0x22ac], 3
call fcn.0046e87c
jmp 0x41e53a
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
call fcn.00401630
push 0x5c
lea ecx, [esp + 0x28]
mov byte [esp + 0x22b0], 5
call fcn.00405220
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00401a30
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x22b0], 6
call fcn.00401bf0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x22ac], 5
call fcn.00401480
xor ebx, ebx
mov dword [esp + 0x3c], ebx
test esi, esi
jbe 0x41e8ad
lea esi, [ebx + ebx]
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0
call fcn.004074d0
push eax
lea ecx, [esp + 0x38]
call fcn.00401630
lea ecx, [esp + 0x34]
mov byte [esp + 0x22ac], 7
call fcn.00411ce0
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x44]
push edx
push str.0X_08x
push eax
call fcn.00495b60
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.00401600
inc esi
push esi
lea ecx, [esp + 0x50]
mov byte [esp + 0x22b0], 8
call fcn.004074d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x24]
push str._s_s
push edx
call fcn.00401cb0
mov edi, dword [esp + 0x2c]
add esp, 0x10
push 0
push edi
lea ecx, [esp + 0x68]
call fcn.00475f0b
test eax, eax
jne 0x41e786
lea ecx, [esp + 0x28]
call fcn.00401600
push 0x4c445c
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x22b8], 9
call fcn.00418700
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x22b0], 0xa
call fcn.00401bf0
lea ecx, [esp + 0x48]
mov byte [esp + 0x22ac], 9
call fcn.00401480
mov edx, dword [esp + 0x28]
push 0
push edx
lea ecx, [esp + 0x68]
call fcn.00475f0b
test eax, eax
jne 0x41e763
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402500
push 0x4c5f58
lea ecx, [esp + 0x1c]
call fcn.00402520
lea ecx, [esp + 0x28]
call fcn.00401480
lea ecx, [esp + 0x1c]
call fcn.00401480
lea ecx, [esp + 0x34]
mov byte [esp + 0x22ac], 5
call fcn.00401480
jmp 0x41e89e
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401bf0
lea ecx, [esp + 0x28]
mov byte [esp + 0x22ac], 8
call fcn.00401480
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x60]
call fcn.00475a58
push 0x220
call fcn.0046433c
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
je 0x41e87c
push 0x220
push esi
push ebp
call fcn.00494750
mov ecx, dword [esp + 0x38]
add esp, 0xc
push edi
add ecx, 0x190
mov ebx, esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
call fcn.00456080
lea edx, [ebp + 8]
test eax, eax
je 0x41e822
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x148]
jmp 0x41e7f0
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x41e7f0
push edi
lea edx, [esp + 0x8c]
push edx
lea ecx, [esi + 0x190]
call fcn.00456450
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
jmp 0x41e843
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x41e826
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
push eax
push ecx
push ebx
push esi
push ebp
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00458530
add esp, 0x1c
test eax, eax
jne 0x41e860
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x30]
add ecx, 0x23fc
call fcn.004172d0
mov ebx, dword [esp + 0x3c]
mov dword [eax], ebp
jmp 0x41e880
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x1c]
call fcn.00401480
lea ecx, [esp + 0x34]
mov byte [esp + 0x22ac], 5
call fcn.00401480
mov ebp, dword [esp + 0x2c]
inc ebx
mov dword [esp + 0x3c], ebx
cmp ebx, dword [esp + 0x38]
jb 0x41e627
lea ecx, [esp + 0x24]
call fcn.00401480
lea ecx, [esp + 0x4c]
mov byte [esp + 0x22ac], 3
call fcn.0046e87c
lea ecx, [esp + 0x60]
mov byte [esp + 0x22ac], 2
call fcn.00475e9c
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
jne 0x41e9cc
test ebx, ebx
je 0x41e9cc
add edi, 0xfffffff0
mov byte [esp + 0x22ac], 1
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41e91a
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x22ac], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e942
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x17]
mov dword [esp + 0x22ac], 0xffffffff
call fcn.00418aa0
mov eax, ebx
jmp 0x41ea86
lea eax, [esi - 0x10]
mov byte [esp + 0x22ac], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x22ac], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e9a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x17]
mov dword [esp + 0x22ac], 0xffffffff
call fcn.00418aa0
mov eax, 1
jmp 0x41ea86
call fcn.00464489
push str.Not_found_bellow_DSP_file:_r_n
push 0
lea ecx, [esp + 0x20]
call fcn.00417890
push 0x2c
push str._r_nPlease_check_BMFileType.ini___ChipDspMap__
lea ecx, [esp + 0x20]
call fcn.00401ab0
mov eax, dword [esp + 0x18]
push 1
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x44], esp
mov esi, esp
push eax
call fcn.00401560
add eax, 0x10
add esp, 4
mov ecx, 0x50b7e0
mov dword [esi], eax
call fcn.0040b710
lea eax, [ebp + 0x23fc]
push eax
mov ecx, ebp
call fcn.004162e0
lea eax, [edi - 0x10]
mov byte [esp + 0x22ac], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ea48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x22ac], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ea70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x17]
mov dword [esp + 0x22ac], 0xffffffff
call fcn.00418aa0
xor eax, eax
mov ecx, dword [esp + 0x22a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228c]
xor ecx, esp
call fcn.004945a7
add esp, 0x229c
ret