Function at 0x41b1cf8e
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x41b28d84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
and dword [ebp - 0x30c], 0
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x330], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 0x310], eax
test eax, eax
jne 0x41b1cfd9
mov eax, 0x107
jmp 0x41b1d635
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x41b110b4
mov esi, 0xff
push esi
lea eax, [ebp - 0x204]
push eax
mov ebx, 0x41b2a1b8
push ebx
push dword [ebp - 0x310]
push 0x41b070c8
call edi
test eax, eax
jne 0x41b1d19e
mov eax, dword [ebp - 0x310]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41b1d018
sub eax, edx
sar eax, 1
mov dword [ebp - 0x318], eax
lea eax, [eax + eax + 4]
push eax
call fcn.41b0c674
mov dword [ebp - 0x30c], eax
test eax, eax
jne 0x41b1d073
mov eax, dword [0x41b28b68]
cmp eax, 0x41b28b68
je 0x41b1d14e
test dword [eax + 0x1c], 0x400000
je 0x41b1d14e
cmp byte [eax + 0x19], 1
jb 0x41b1d14e
push 0x41b110a4
push 0x18
jmp 0x41b1d143
push dword [ebp - 0x310]
mov eax, dword [ebp - 0x318]
lea eax, [eax + eax + 4]
push eax
push dword [ebp - 0x30c]
call fcn.41b029b6
test eax, eax
jl 0x41b1d14e
mov ecx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x30c]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x308], 1
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x308]
mov ecx, dword [ebp - 0x318]
push 0x41b110b4
add eax, 0x30
push esi
mov word [ecx], ax
lea eax, [ebp - 0x204]
push eax
push ebx
push dword [ebp - 0x30c]
push 0x41b070c8
call edi
test eax, eax
jne 0x41b1d158
inc dword [ebp - 0x308]
cmp dword [ebp - 0x308], 9
jle 0x41b1d0b6
push dword [ebp - 0x30c]
push eax
push dword [0x41b28b30]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0xa0
call fcn.41b0c674
mov dword [ebp - 0x30c], eax
test eax, eax
jne 0x41b1d241
mov eax, dword [0x41b28b68]
cmp eax, 0x41b28b68
je 0x41b1d14e
test dword [eax + 0x1c], 0x400000
je 0x41b1d14e
cmp byte [eax + 0x19], 1
jb 0x41b1d14e
push 0x41b110a4
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
mov eax, 0x108
jmp 0x41b1d632
mov eax, dword [0x41b28b68]
cmp eax, 0x41b28b68
je 0x41b1d192
test dword [eax + 0x1c], 0x400000
je 0x41b1d192
cmp byte [eax + 0x19], 2
jb 0x41b1d192
lea ecx, [ebp - 0x204]
push ecx
push dword [ebp - 0x30c]
push 0x41b110a4
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b0510d
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x310], eax
cmp word [ebp - 0x204], 0x20
lea eax, [ebp - 0x204]
je 0x41b1d1c2
cmp word [eax], 0
je 0x41b1d1bc
inc eax
inc eax
cmp word [eax], 0x20
jne 0x41b1d1ae
cmp word [eax], 0x20
jne 0x41b1d1c9
xor ecx, ecx
mov word [eax], cx
inc eax
inc eax
push 0x80
lea ecx, [ebp - 0x304]
push ecx
push eax
push dword [ebp - 0x310]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
mov eax, dword [0x41b28b68]
mov ebx, 0x41b28b68
mov edi, 0x400000
cmp eax, ebx
je 0x41b1d22d
test dword [eax + 0x1c], edi
je 0x41b1d22d
cmp byte [eax + 0x19], 3
jb 0x41b1d22d
lea ecx, [ebp - 0x304]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push dword [ebp - 0x310]
push 0x41b110a4
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b1bcd2
test dword [ebp + 8], 0xa00
mov esi, dword [ebp - 0x314]
je 0x41b1d2a5
mov eax, dword [esi + 0xc]
jmp 0x41b1d2a8
push esi
lea ecx, [ebp - 0x204]
push ecx
push 0x50
push eax
push dword [ebp - 0x310]
call fcn.41b1cd56
mov esi, eax
test esi, esi
je 0x41b1d192
mov eax, dword [0x41b28b68]
cmp eax, 0x41b28b68
je 0x41b1d613
test dword [eax + 0x1c], 0x400000
je 0x41b1d613
cmp byte [eax + 0x19], 1
jb 0x41b1d613
push dword [ebp - 0x310]
push 0x41b110a4
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02a79
jmp 0x41b1d613
mov eax, dword [esi + 8]
test dword [ebp + 8], 0x400
je 0x41b1d30b
cmp dword [ebp + 0x14], 0
jne 0x41b1d308
mov eax, dword [ebp - 0x31c]
push dword [eax + 8]
push dword [esi + 0x10]
call fcn.41b0c75f
test eax, eax
je 0x41b1d308
mov esi, 0x121
mov eax, dword [0x41b28b68]
cmp eax, ebx
je 0x41b1d613
test dword [eax + 0x1c], edi
je 0x41b1d613
cmp byte [eax + 0x19], 1
jb 0x41b1d613
push 0x41b110a4
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
jmp 0x41b1d613
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x318]
push ecx
push eax
push dword [ebp + 8]
call fcn.41b1cb68
mov dword [ebp - 0x308], eax
test eax, eax
jne 0x41b1d355
mov eax, dword [0x41b28b68]
cmp eax, ebx
je 0x41b1d34b
test dword [eax + 0x1c], edi
je 0x41b1d34b
cmp byte [eax + 0x19], 1
jb 0x41b1d34b
push 0x41b110a4
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
mov esi, 0x10a
jmp 0x41b1d613
mov eax, dword [ebp - 0x31c]
mov eax, dword [eax + 8]
mov esi, dword [ebp - 0x318]
test eax, eax
jne 0x41b1d36e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x34], eax
cmp eax, dword [esi + 0x30]
je 0x41b1d37d
or dword [esi + 0x3c], 0x20000
or dword [ebp - 0x324], 0xffffffff
and dword [ebp - 0x320], 0
lea eax, [ebp - 0x304]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x308]
mov dword [ebp - 0x32c], eax
lea eax, [ebp - 0x32c]
push eax
push 0x41b070c8
lea eax, [ebp - 0x204]
push eax
call sym.WINMM.dll_OpenDriver
mov edi, eax
test edi, edi
jne 0x41b1d3f6
mov eax, dword [0x41b28b68]
cmp eax, ebx
je 0x41b1d3eb
test dword [eax + 0x1c], 0x400000
je 0x41b1d3eb
cmp byte [eax + 0x19], 1
jb 0x41b1d3eb
push 0x41b110a4
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
push esi
call fcn.41b1c24d
jmp 0x41b1d34b
mov eax, dword [ebp - 0x308]
mov ecx, dword [ebp - 0x314]
push edi
mov dword [ecx + 4], eax
call sym.WINMM.dll_DrvGetModuleHandle
mov dword [esi + 0x38], edi
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x324]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x320]
mov dword [esi + 0x20], eax
push dword [ebp - 0x320]
call fcn.41b1b8ba
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
jne 0x41b1d47f
push dword [ebp - 0x320]
mov eax, dword [ebp - 0x314]
push dword [eax + 8]
push dword [0x41b28b64]
call sym.WINMM.dll_mciLoadCommandResource
mov dword [esi + 0x24], eax
mov ecx, dword [0x41b28b68]
cmp ecx, ebx
je 0x41b1d47f
test dword [ecx + 0x1c], 0x400000
je 0x41b1d47f
cmp byte [ecx + 0x19], 3
jb 0x41b1d47f
push eax
push 0x41b110a4
push 0x20
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.41b0298a
mov eax, dword [ebp - 0x310]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41b1d488
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 2]
push edi
call fcn.41b0c674
mov dword [esi + 4], eax
test eax, eax
jne 0x41b1d4e9
push eax
push eax
push eax
push dword [ebp - 0x308]
call fcn.41b1c3ba
mov eax, dword [0x41b28b68]
cmp eax, ebx
je 0x41b1d4df
test dword [eax + 0x1c], 0x400000
je 0x41b1d4df
cmp byte [eax + 0x19], 1
jb 0x41b1d4df
push 0x41b110a4
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
mov esi, 0x108
jmp 0x41b1d613
push dword [ebp - 0x310]
push edi
push eax
call fcn.41b050d1
test eax, eax
jge 0x41b1d52b
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x308]
call fcn.41b1c3ba
mov eax, dword [0x41b28b68]
cmp eax, ebx
je 0x41b1d4df
test dword [eax + 0x1c], 0x400000
je 0x41b1d4df
cmp byte [eax + 0x19], 1
jb 0x41b1d4df
push 0x41b110a4
push 0x22
jmp 0x41b1d4d4
mov edi, dword [ebp - 0x31c]
xor eax, eax
cmp dword [edi], eax
je 0x41b1d596
push dword [ebp - 0x308]
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 0x24]
push dword [esi + 0x28]
push edi
call fcn.41b1cc3d
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x41b1d5ae
mov eax, dword [0x41b28b68]
cmp eax, ebx
je 0x41b1d586
test dword [eax + 0x1c], 0x400000
je 0x41b1d586
cmp byte [eax + 0x19], 1
jb 0x41b1d586
push 0x41b110a4
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
push edi
push edi
push edi
push dword [ebp - 0x308]
call fcn.41b1c3ba
jmp 0x41b1d613
cmp dword [edi + 0xc], eax
je 0x41b1d5ae
push eax
push eax
push eax
push dword [ebp - 0x308]
call fcn.41b1c3ba
mov esi, dword [edi + 0xc]
jmp 0x41b1d613
mov edi, dword [ebp - 0x314]
push edi
push dword [ebp + 8]
push 0x801
push dword [ebp - 0x308]
call sym.WINMM.dll_mciSendCommandW
movzx esi, ax
xor eax, eax
push eax
cmp esi, eax
je 0x41b1d5e1
push eax
push eax
push dword [ebp - 0x308]
call fcn.41b1c3ba
jmp 0x41b1d5ee
push 3
push dword [ebp - 0x308]
call fcn.41b1c704
cmp dword [ebp - 0x330], edi
je 0x41b1d613
cmp dword [ebp - 0x314], 0
je 0x41b1d613
push dword [ebp - 0x314]
push 0
push dword [0x41b28b30]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x30c], 0
je 0x41b1d630
push dword [ebp - 0x30c]
push 0
push dword [0x41b28b30]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.41b028d6
leave
ret 0x10