Function at 0x401830
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c7cd
mov eax, dword fs:[0]
push eax
mov eax, 0x1084
call fcn.0040c6d0
mov eax, dword [0x415008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
cmp byte [edx], 0
mov dword [ebp - 0x1090], 0
mov dword [ebp - 0x102c], 0xf
mov dword [ebp - 0x1030], 0
mov byte [ebp - 0x1040], 0
jne 0x40189c
xor ecx, ecx
jmp 0x4018b4
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x108c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4018a7
sub ecx, dword [ebp - 0x108c]
push ecx
push edx
lea ecx, [ebp - 0x1040]
call fcn.004020c0
lea edx, [ebp - 0x1040]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1088]
call fcn.00401520
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 2
call fcn.00402a90
cmp byte [esi], 0
mov dword [ebp - 0x1014], 0xf
mov dword [ebp - 0x1018], 0
mov byte [ebp - 0x1028], 0
jne 0x40190c
xor ecx, ecx
jmp 0x40191a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401911
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x1028]
call fcn.004020c0
lea edx, [ebp - 0x1028]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1070]
call fcn.00401520
lea ecx, [ebp - 0x1028]
mov byte [ebp - 4], 5
call fcn.00402a90
cmp byte [ebx], 0
mov dword [ebp - 0x102c], 0xf
mov dword [ebp - 0x1030], 0
mov byte [ebp - 0x1040], 0
jne 0x40196f
xor ecx, ecx
jmp 0x40197d
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401974
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x1040]
call fcn.004020c0
lea edx, [ebp - 0x1040]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1058]
call fcn.00401520
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 8
call fcn.00402a90
cmp dword [0x42a074], 8
lea edx, [ebp - 0x1058]
mov esi, 0x42a060
lea ecx, [ebp - 0x1070]
cmovae esi, dword [0x42a060]
lea eax, [ebp - 0x1088]
cmp dword [ebp - 0x1044], 8
push esi
cmovae edx, dword [ebp - 0x1058]
lea esi, [ebp - 0x1010]
cmp dword [ebp - 0x105c], 8
push 0x800
cmovae ecx, dword [ebp - 0x1070]
cmp dword [ebp - 0x1074], 8
push esi
cmovae eax, dword [ebp - 0x1088]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp - 0x1014], 7
mov dword [ebp - 0x1018], 0
mov word [ebp - 0x1028], ax
cmp word [ebp - 0x1010], ax
jne 0x401a3d
xor ecx, ecx
jmp 0x401a55
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401a46
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1028]
call fcn.00401d90
lea edx, [ebp - 0x1028]
mov byte [ebp - 4], 9
mov ecx, edi
call fcn.00401430
mov eax, dword [ebp - 0x1014]
cmp eax, 8
jb 0x401a91
inc eax
push eax
push dword [ebp - 0x1028]
call fcn.004012d0
mov eax, dword [ebp - 0x1044]
cmp eax, 8
jb 0x401aa9
inc eax
push eax
push dword [ebp - 0x1058]
call fcn.004012d0
xor eax, eax
mov dword [ebp - 0x1044], 7
mov word [ebp - 0x1058], ax
mov eax, dword [ebp - 0x105c]
mov dword [ebp - 0x1048], 0
cmp eax, 8
jb 0x401ade
inc eax
push eax
push dword [ebp - 0x1070]
call fcn.004012d0
mov ecx, dword [ebp - 0x1074]
xor eax, eax
mov dword [ebp - 0x105c], 7
mov dword [ebp - 0x1060], 0
mov word [ebp - 0x1070], ax
cmp ecx, 8
jb 0x401b13
inc ecx
push ecx
push dword [ebp - 0x1088]
call fcn.004012d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407806
mov esp, ebp
pop ebp
ret 0x10