Function at 0x41390e
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, str._mdi
push ebx
call fcn.004f7de3
test eax, eax
jne 0x413930
xor eax, eax
jmp 0x413c05
mov al, byte [ebx + 0x638]
test al, al
je 0x41396d
cmp al, 1
je 0x41396d
cmp al, 2
je 0x41396d
cmp al, 5
je 0x41396d
cmp byte [ebx + 0x638], 9
jne 0x413c03
cmp byte [ebx + 0x655], 0
jne 0x413c03
cmp byte [ebx + 0x639], 1
je 0x413c03
cmp byte [ebx + 0x638], 0
jne 0x4139a4
push 0x52ffb0
push 0x3e7
push 0x55219c
lea edx, [esi + 0x112]
push edx
lea ecx, [esi + 0x10a]
push ecx
lea eax, [esi + 0xfe]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x413b31
cmp byte [ebx + 0x638], 2
jne 0x4139e4
cmp byte [ebx + 0x639], 2
jne 0x4139e4
push 0x52ffb0
push 0x3e7
push 0x55219c
lea edx, [esi + 0x12c]
push edx
lea ecx, [esi + 0x122]
push ecx
lea eax, [esi + 0x116]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x413b31
cmp byte [ebx + 0x638], 5
jne 0x413a1b
push 0x52ffb0
push 0x3e7
push 0x55219c
lea edx, [esi + 0x145]
push edx
lea ecx, [esi + 0x13c]
push ecx
lea eax, [esi + 0x130]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x413b31
push 0x20
lea edx, [ebx + 4]
push edx
call fcn.0051833c
add esp, 8
mov dword [0x5444fc], eax
cmp dword [0x5444fc], 0
je 0x413a3d
inc dword [0x5444fc]
mov eax, dword [0x5444fc]
test eax, eax
je 0x413a4b
cmp byte [eax], 0
jne 0x413a54
lea edx, [ebx + 4]
mov dword [0x5444fc], edx
push 0x52ffb0
push 0x3e7
push 0x55219c
lea ecx, [esi + 0x155]
push ecx
push dword [0x5444fc]
lea eax, [esi + 0x149]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [0x55219c], 0
jne 0x413b31
cmp byte [ebx + 0x638], 1
jne 0x413abd
push 0x52ffb0
push 0x3e7
push 0x55219c
lea edx, [esi + 0x16f]
push edx
lea ecx, [esi + 0x165]
push ecx
lea eax, [esi + 0x159]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x413b31
cmp byte [ebx + 0x638], 2
jne 0x413b31
mov al, byte [ebx + 0x639]
cmp al, 1
je 0x413ad4
cmp al, 3
jne 0x413aff
push 0x52ffb0
push 0x3e7
push 0x55219c
lea edx, [esi + 0x187]
push edx
lea ecx, [esi + 0x17f]
push ecx
lea eax, [esi + 0x173]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
jmp 0x413b31
cmp byte [ebx + 0x639], 4
jne 0x413b31
push 0x52ffb0
push 0x3e7
push 0x55219c
lea edx, [esi + 0x19e]
push edx
lea ecx, [esi + 0x197]
push ecx
lea eax, [esi + 0x18b]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [0x55219c], 0
je 0x413b52
lea edx, [esi + 0x1a2]
push edx
push 0x55219c
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x413b65
push ebx
call fcn.004137dd
push ebx
call fcn.00412605
xor eax, eax
jmp 0x413c05
push 0x2c
push 0x55219c
call fcn.005186c4
add esp, 8
mov esi, eax
mov dword [0x5444fc], esi
test esi, esi
je 0x413bb8
mov byte [esi], 0
inc dword [0x5444fc]
mov esi, dword [0x5444fc]
cmp byte [esi], 0
je 0x413bb8
push esi
call fcn.0052175c
pop ecx
mov dword [ebx + 0x768], eax
mov eax, dword [ebx + 0x768]
test eax, eax
jl 0x413bb0
cmp eax, 5
jle 0x413bb8
xor edx, edx
mov dword [ebx + 0x768], edx
cmp edi, 1
jne 0x413beb
push 0x55219c
call fcn.00416498
push 0x55219c
push dword [ebx]
call fcn.0041364e
test eax, eax
jne 0x413be3
push ebx
call fcn.004137dd
push ebx
call fcn.00412605
mov eax, dword [ebx + 0x768]
jmp 0x413c05
push ebx
call fcn.004137dd
push ebx
call fcn.00412605
test edi, edi
jne 0x413c03
mov eax, dword [ebx + 0x768]
jmp 0x413c05
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8