Function at 0x406170
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d62b
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x424084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 8
cmp dword [ebx + 0x14], esi
jb 0x4061ab
mov eax, dword [ebx]
jmp 0x4061ad
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4061bf
xor al, al
jmp 0x40646d
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.00415410
add esp, 0xc
cmp dword [ebx + 0x14], esi
jb 0x4061e6
mov eax, dword [ebx]
jmp 0x4061e8
mov eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x420730
push str.RingToolPath
push str.RingTool
call edi
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406215
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x1c]
lea eax, [ebp - 0x21c]
call fcn.00401890
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00415410
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x406253
mov eax, dword [ebx]
jmp 0x406255
mov eax, ebx
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x420730
push str.RingToolVersion
push str.RingTool
call edi
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406280
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x38]
lea eax, [ebp - 0x21c]
call fcn.00401890
mov esi, 8
cmp dword [ebx + 0x14], esi
jb 0x4062ac
mov eax, dword [ebx]
jmp 0x4062ae
mov eax, ebx
push eax
push 0
push str.RingToolBit
push str.RingTool
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x20a
lea edx, [ebp - 0x21c]
push 0
push edx
mov dword [ebx + 0x54], eax
call fcn.00415410
add esp, 0xc
cmp dword [ebx + 0x14], esi
jb 0x4062e3
mov eax, dword [ebx]
jmp 0x4062e5
mov eax, ebx
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x420730
push str.AudioVersion
push str.AudioComponents
call edi
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406310
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x58]
lea eax, [ebp - 0x21c]
call fcn.00401890
cmp dword [ebx + 0x14], 8
jb 0x406338
mov eax, dword [ebx]
jmp 0x40633a
mov eax, ebx
push eax
push 0
push 0x420aa0
push str.AudioComponents
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x448], 1
cmp eax, 1
jl 0x40646b
jmp 0x406376
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x20a
lea ecx, [ebp - 0x21c]
push 0
push ecx
call fcn.00415410
push 0x20a
lea edx, [ebp - 0x428]
push 0
push edx
call fcn.00415410
mov ecx, dword [ebp - 0x448]
push 0xa
lea eax, [ebp - 0x21c]
push eax
push ecx
call fcn.0040fbe8
add esp, 0x24
mov eax, ebx
call fcn.00401980
push eax
push 0x104
lea edx, [ebp - 0x428]
push edx
push 0x420730
lea eax, [ebp - 0x21c]
push eax
push str.AudioComponents
call edi
xor ecx, ecx
lea eax, [ebp - 0x428]
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
mov word [ebp - 0x444], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406401
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x428]
lea esi, [ebp - 0x444]
call fcn.00401890
mov ecx, esi
lea edi, [ebx + 0x74]
mov dword [ebp - 4], 0
call fcn.00403d00
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x430], 8
jb 0x406452
mov edx, dword [ebp - 0x444]
push edx
call fcn.0040ecdf
add esp, 4
mov eax, dword [ebp - 0x448]
inc eax
mov dword [ebp - 0x448], eax
cmp eax, dword [ebp - 0x44c]
jle 0x406370
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ecd0
mov esp, ebp
pop ebp
ret