Function at 0x418650
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x46f916
push eax
mov eax, 0x2278
mov dword fs:[0], esp
call fcn.0043f620
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457f84
lea eax, [esi + 0x1f90]
xor ebp, ebp
push eax
mov ecx, esi
mov dword [esp + 0x2294], ebp
mov dword [esp + 0x24], eax
call fcn.00418580
lea edi, [esi + 0x93c]
mov ecx, edi
call fcn.00430200
test eax, eax
jne 0x4186be
mov dword [esp + 0x2290], 0xffffffff
jmp 0x418bd6
push 0x4b1a08
lea ecx, [esp + 0x14]
call fcn.0045854a
mov eax, dword [0x4ad780]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2290], 2
push ecx
push str.DSPCode
mov ecx, edi
call fcn.0042fd60
or ebx, 0xffffffff
cmp eax, ebx
je 0x418b41
cmp dword [esp + 0x2c], ebp
je 0x418b41
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esi + 0x8cc]
call fcn.00412690
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2294], 3
call fcn.0045861d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2290], 2
call fcn.004584d6
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebp
je 0x418bad
push 0x475c28
push eax
call fcn.0043f8ef
add esp, 8
cmp eax, ebp
je 0x418bad
lea ecx, [esp + 0x64]
call fcn.004372eb
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x82]
mov word [esp + 0x80], bp
rep stosd dword es:[edi], eax
mov ecx, dword [0x4b1ca8]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x84]
mov byte [esp + 0x2294], 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x80]
push 0x5c
push edx
call fcn.0043f5c1
mov word [eax], bp
lea eax, [esp + 0x88]
push str.BMFileType.ini
push eax
call fcn.0043f572
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x29a]
mov word [esp + 0x298], bp
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x80]
lea edx, [esp + 0x288]
push ecx
push 0x1000
push edx
push str.ChipDSPMap
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, ebp
jne 0x41882a
push ebp
push ebp
push str.Not_found_ChipID_DSPName_map_setting_in_BMFileType.ini_
call fcn.0045f42f
lea ecx, [esp + 0x64]
mov byte [esp + 0x2290], 2
call fcn.0043732a
jmp 0x418b73
lea ecx, [esp + 0x4c]
call fcn.00453105
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x288]
push eax
push ecx
mov byte [esp + 0x2298], 5
call fcn.004308d0
mov edi, eax
add esp, 8
cmp edi, ebp
mov dword [esp + 0x34], edi
jne 0x418879
push ebp
push ebp
push str.Not_found_ChipID_DSPName_map_setting_in_BMFileType.ini_
call fcn.0045f42f
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2290], 4
call fcn.00453138
jmp 0x418814
lea edx, [esp + 0x14]
lea ecx, [esp + 0x24]
push edx
call fcn.00458243
push 0x5c
lea ecx, [esp + 0x28]
mov byte [esp + 0x2294], 6
call fcn.004512ef
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
call fcn.00451277
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x2294], 7
call fcn.0045861d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2290], 6
call fcn.004584d6
xor esi, esi
cmp edi, ebp
mov dword [esp + 0x1c], esi
jbe 0x418b0e
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x30], ebp
lea edx, [ecx + esi*8]
lea ecx, [esp + 0x28]
push edx
call fcn.00458243
lea ecx, [esp + 0x28]
mov byte [esp + 0x2290], 8
call fcn.0045899f
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
push str.0X_08x
push ecx
call fcn.0043f6f3
mov edx, dword [0x4ad780]
add esp, 0xc
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
mov byte [esp + 0x2290], 9
mov eax, dword [eax + esi*8 + 4]
push eax
push ecx
push 0x4a958c
push edx
call fcn.00451685
mov eax, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x64]
push ebp
push eax
call fcn.004373b0
test eax, eax
jne 0x41899f
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.0045888f
push 0x4aba10
lea ecx, [esp + 0x14]
call fcn.00458853
lea ecx, [esp + 0x18]
mov byte [esp + 0x2290], 8
call fcn.004584d6
lea ecx, [esp + 0x28]
mov byte [esp + 0x2290], 6
call fcn.004584d6
jmp 0x418b01
push 0x21c
call fcn.00458a48
mov edx, eax
add esp, 4
cmp edx, ebp
je 0x4189c1
mov ecx, 0x87
xor eax, eax
mov edi, edx
mov ebx, edx
rep stosd dword es:[edi], eax
jmp 0x4189c3
xor ebx, ebx
mov edx, dword [esp + 0x18]
lea eax, [ebx + 8]
push edx
push eax
call fcn.0043f59c
mov ecx, dword [esp + 0x20]
add esp, 8
push 0x8020
push ecx
lea ecx, [esp + 0x44]
call fcn.00458ef8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2290], 0xa
call fcn.0045934f
cmp eax, ebp
mov dword [ebx], eax
je 0x418a17
push eax
call fcn.00458a48
mov edx, dword [ebx]
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [ebx + 4], eax
push edx
push eax
call fcn.00459172
lea ecx, [esp + 0x3c]
call fcn.00459270
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
xor edx, edx
mov ecx, dword [esp + 0x20]
mov ebp, dword [eax + 8]
mov eax, edi
shr eax, 4
div ebp
mov ecx, dword [ecx + 4]
mov dword [esp + 0x38], edi
test ecx, ecx
mov esi, edx
mov dword [esp + 0x60], esi
je 0x418a65
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x418a61
cmp dword [eax + 8], edi
je 0x418a5d
mov eax, dword [eax]
test eax, eax
jne 0x418a50
jmp 0x418a61
test eax, eax
jne 0x418abe
test ecx, ecx
jne 0x418a99
lea edi, [ebp*4]
push edi
call fcn.00458a48
mov edx, eax
mov eax, dword [esp + 0x24]
mov ecx, edi
mov edi, edx
mov dword [eax + 4], edx
mov edx, ecx
xor eax, eax
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
mov dword [eax + 8], ebp
mov ecx, dword [esp + 0x20]
call fcn.0040aff0
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov edx, dword [edx + esi*4]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [ecx + esi*4], eax
lea ecx, [esp + 0x3c]
mov dword [eax + 0xc], ebx
mov byte [esp + 0x2290], 9
call fcn.00458f98
lea ecx, [esp + 0x18]
mov byte [esp + 0x2290], 8
call fcn.004584d6
lea ecx, [esp + 0x28]
mov byte [esp + 0x2290], 6
call fcn.004584d6
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
or ebx, 0xffffffff
xor ebp, ebp
inc esi
cmp esi, edi
mov dword [esp + 0x1c], esi
jb 0x4188da
lea ecx, [esp + 0x24]
mov byte [esp + 0x2290], 5
call fcn.004584d6
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2290], 4
call fcn.00453138
lea ecx, [esp + 0x64]
mov byte [esp + 0x2290], 2
call fcn.0043732a
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], ebp
je 0x418bad
push str.Not_found_bellow_DSP_file:_r_n
push ebp
lea ecx, [esp + 0x18]
call fcn.00450e89
push str._r_nPlease_check_BMFileType.ini___ChipDspMap__
lea ecx, [esp + 0x14]
call fcn.00458853
mov eax, dword [esp + 0x10]
push ebp
push ebp
push eax
call fcn.0045f42f
lea ecx, [esp + 0x14]
mov byte [esp + 0x2290], 1
call fcn.004584d6
lea ecx, [esp + 0x10]
mov byte [esp + 0x2290], 0
call fcn.004584d6
mov dword [esp + 0x2290], ebx
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457f99
xor eax, eax
jmp 0x418be8
lea ecx, [esp + 0x14]
mov byte [esp + 0x2290], 1
call fcn.004584d6
lea ecx, [esp + 0x10]
mov byte [esp + 0x2290], 0
call fcn.004584d6
mov dword [esp + 0x2290], ebx
call fcn.00468777
mov ecx, dword [eax + 4]
call fcn.00457f99
mov eax, 1
mov ecx, dword [esp + 0x2288]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2284
ret