Function at 0x41cf48
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, 0x4f1c8e
push ebx
call fcn.004e8a54
test eax, eax
jne 0x41cf6a
xor eax, eax
jmp 0x41d276
mov al, byte [ebx + 0x4cc]
test al, al
je 0x41cfa7
cmp al, 1
je 0x41cfa7
cmp al, 2
je 0x41cfa7
cmp al, 5
je 0x41cfa7
cmp byte [ebx + 0x4cc], 9
jne 0x41d274
cmp byte [ebx + 0x4e9], 0
jne 0x41d274
cmp byte [ebx + 0x4cd], 1
je 0x41d274
cmp byte [ebx + 0x4cc], 0
jne 0x41cfde
push 0x4f7dec
push 0x3e7
push 0x5120fc
lea edx, [esi + 0x13c]
push edx
lea ecx, [esi + 0x134]
push ecx
lea eax, [esi + 0x128]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x41d1a1
cmp byte [ebx + 0x4cc], 2
jne 0x41d01e
cmp byte [ebx + 0x4cd], 2
jne 0x41d01e
push 0x4f7dec
push 0x3e7
push 0x5120fc
lea edx, [esi + 0x156]
push edx
lea ecx, [esi + 0x14c]
push ecx
lea eax, [esi + 0x140]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x41d1a1
cmp byte [ebx + 0x4cc], 5
jne 0x41d055
push 0x4f7dec
push 0x3e7
push 0x5120fc
lea edx, [esi + 0x16f]
push edx
lea ecx, [esi + 0x166]
push ecx
lea eax, [esi + 0x15a]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x41d1a1
push 0x20
lea edx, [ebx + 4]
push edx
call fcn.00401278
add esp, 8
mov dword [0x50530c], eax
cmp dword [0x50530c], 0
je 0x41d077
inc dword [0x50530c]
mov eax, dword [0x50530c]
test eax, eax
je 0x41d085
cmp byte [eax], 0
jne 0x41d08e
lea edx, [ebx + 4]
mov dword [0x50530c], edx
push 0x4f7dec
push 0x3e7
push 0x5120fc
lea ecx, [esi + 0x17f]
push ecx
mov eax, dword [0x50530c]
push eax
lea edx, [esi + 0x173]
push edx
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [0x5120fc], 0
jne 0x41d1a1
cmp byte [ebx + 0x4cc], 1
jne 0x41d0fa
push 0x4f7dec
push 0x3e7
push 0x5120fc
lea ecx, [esi + 0x199]
push ecx
lea eax, [esi + 0x18f]
push eax
lea edx, [esi + 0x183]
push edx
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x41d1a1
cmp byte [ebx + 0x4cc], 2
jne 0x41d1a1
cmp byte [ebx + 0x4cd], 3
jne 0x41d13b
push 0x4f7dec
push 0x3e7
push 0x5120fc
lea ecx, [esi + 0x1b0]
push ecx
lea eax, [esi + 0x1a9]
push eax
lea edx, [esi + 0x19d]
push edx
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x41d1a1
cmp byte [ebx + 0x4cd], 4
jne 0x41d16f
push 0x4f7dec
push 0x3e7
push 0x5120fc
lea ecx, [esi + 0x1c7]
push ecx
lea eax, [esi + 0x1c0]
push eax
lea edx, [esi + 0x1b4]
push edx
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x41d1a1
cmp byte [ebx + 0x4cd], 1
jne 0x41d1a1
push 0x4f7dec
push 0x3e7
push 0x5120fc
lea ecx, [esi + 0x1df]
push ecx
lea eax, [esi + 0x1d7]
push eax
lea edx, [esi + 0x1cb]
push edx
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [0x5120fc], 0
je 0x41d1c2
lea ecx, [esi + 0x1e3]
push ecx
push 0x5120fc
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x41d1d5
push ebx
call fcn.0041ce10
push ebx
call fcn.0041bce8
xor eax, eax
jmp 0x41d276
push 0x2c
push 0x5120fc
call fcn.004015cc
add esp, 8
mov esi, eax
mov dword [0x50530c], esi
test esi, esi
je 0x41d228
mov byte [esi], 0
inc dword [0x50530c]
mov esi, dword [0x50530c]
cmp byte [esi], 0
je 0x41d228
push esi
call fcn.00409a14
pop ecx
mov dword [ebx + 0x5f4], eax
mov eax, dword [ebx + 0x5f4]
test eax, eax
jl 0x41d220
cmp eax, 5
jle 0x41d228
xor edx, edx
mov dword [ebx + 0x5f4], edx
cmp edi, 1
jne 0x41d25c
push 0x5120fc
call fcn.0041fbd4
push 0x5120fc
mov ecx, dword [ebx]
push ecx
call fcn.0041cc7c
test eax, eax
jne 0x41d254
push ebx
call fcn.0041ce10
push ebx
call fcn.0041bce8
mov eax, dword [ebx + 0x5f4]
jmp 0x41d276
push ebx
call fcn.0041ce10
push ebx
call fcn.0041bce8
test edi, edi
jne 0x41d274
mov eax, dword [ebx + 0x5f4]
jmp 0x41d276
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8