Function at 0x4183c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50842b
mov eax, dword fs:[0]
push eax
mov eax, 0x10fc
call fcn.004bbe50
mov eax, dword [0x547770]
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea esi, [ecx + 0x38]
mov dword [ebp - 0x10f4], ecx
xor ebx, ebx
mov dword [ebp - 0x1104], ebx
push edi
mov ecx, esi
mov dword [ebp - 0x10f8], eax
mov dword [ebp - 0x1104], esi
call fcn.00404bc0
mov dword [ebp - 0x1100], eax
cmp eax, dword [esi + 4]
je 0x418450
mov ecx, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x418436
mov eax, dword [eax]
push ecx
mov ecx, dword [edi + 0x10]
push eax
push ecx
push ebx
mov ecx, edi
call fcn.00401df0
test eax, eax
js 0x418450
lea eax, [ebp - 0x1100]
jmp 0x41845f
mov edx, dword [esi + 4]
mov dword [ebp - 0x10fc], edx
lea eax, [ebp - 0x10fc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10f4]
cmp eax, dword [ecx + 0x3c]
je 0x418494
mov esi, dword [ebp - 0x10f8]
push 0xffffffffffffffff
push ebx
add eax, 0x28
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00401500
jmp 0x418b37
push 1
push ebx
push 0x5116bc
mov ecx, edi
call fcn.004078a0
mov esi, eax
xor eax, eax
mov dword [ebp - 0x10a4], 7
mov dword [ebp - 0x10a8], ebx
mov word [ebp - 0x10b8], ax
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x418a30
push esi
push ebx
lea ecx, [ebp - 0x10d4]
push ecx
mov ecx, edi
call fcn.00404f30
push 0xffffffffffffffff
inc esi
push esi
lea edx, [ebp - 0x10f0]
push edx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00404f30
push 0xffe
lea ecx, [ebp - 0x100e]
xor eax, eax
push ebx
push ecx
mov byte [ebp - 4], 2
mov word [ebp - 0x1010], ax
call fcn.004bad00
lea edx, [ebp - 0x1080]
push edx
lea ecx, [ebp - 0x10f0]
call fcn.00417950
push eax
lea eax, [ebp - 0x102c]
push eax
mov byte [ebp - 4], 3
call fcn.00417570
lea ecx, [ebp - 0x1064]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00416a10
mov esi, dword [ebp - 0x10f4]
mov ecx, 8
add esp, 0x1c
cmp dword [esi + 0x30], ecx
jb 0x41855c
mov edx, dword [esi + 0x1c]
jmp 0x41855f
lea edx, [esi + 0x1c]
cmp dword [eax + 0x14], ecx
jb 0x418566
mov eax, dword [eax]
cmp dword [ebp - 0x10c0], ecx
mov ecx, dword [ebp - 0x10d4]
jae 0x41857a
lea ecx, [ebp - 0x10d4]
push edx
push 0x800
lea edx, [ebp - 0x1010]
push edx
push 0x514388
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x1050], 8
jb 0x4185ac
mov eax, dword [ebp - 0x1064]
push eax
call fcn.004b9d66
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x1018], 0x10
mov dword [ebp - 0x1050], 7
mov dword [ebp - 0x1054], ebx
mov word [ebp - 0x1064], cx
jb 0x4185dd
mov edx, dword [ebp - 0x102c]
push edx
call fcn.004b9d66
add esp, 4
cmp dword [ebp - 0x106c], 0x10
mov dword [ebp - 0x1018], 0xf
mov dword [ebp - 0x101c], ebx
mov byte [ebp - 0x102c], bl
mov byte [ebp - 4], 2
jb 0x41860f
mov eax, dword [ebp - 0x1080]
push eax
call fcn.004b9d66
add esp, 4
xor ecx, ecx
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1050], 7
mov dword [ebp - 0x1054], ebx
mov word [ebp - 0x1064], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418631
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x1064]
call fcn.004021e0
lea eax, [ebp - 0x1080]
push eax
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], 5
call fcn.00417950
push eax
lea ecx, [ebp - 0x1048]
push ecx
mov byte [ebp - 4], 6
call fcn.00417700
lea edx, [ebp - 0x102c]
push edx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00416a10
add esp, 0x10
push eax
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], 8
call fcn.00401720
cmp dword [ebp - 0x1018], 8
jb 0x4186b7
mov eax, dword [ebp - 0x102c]
push eax
call fcn.004b9d66
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x1034], 0x10
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], ebx
mov word [ebp - 0x102c], cx
jb 0x4186e8
mov edx, dword [ebp - 0x1048]
push edx
call fcn.004b9d66
add esp, 4
cmp dword [ebp - 0x106c], 0x10
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], ebx
mov byte [ebp - 0x1048], bl
jb 0x418716
mov eax, dword [ebp - 0x1080]
push eax
call fcn.004b9d66
add esp, 4
cmp dword [ebp - 0x1050], 8
mov dword [ebp - 0x106c], 0xf
mov dword [ebp - 0x1070], ebx
mov byte [ebp - 0x1080], bl
mov byte [ebp - 4], 2
jb 0x418748
mov ecx, dword [ebp - 0x1064]
push ecx
call fcn.004b9d66
add esp, 4
cmp dword [ebp - 0x10a8], ebx
jne 0x4189dc
mov eax, 8
cmp dword [esi + 0x30], eax
jb 0x418763
mov ecx, dword [esi + 0x1c]
jmp 0x418766
lea ecx, [esi + 0x1c]
mov edx, dword [ebp - 0x10f0]
cmp dword [ebp - 0x10dc], eax
jae 0x41877a
lea edx, [ebp - 0x10f0]
cmp dword [ebp - 0x10c0], eax
mov eax, dword [ebp - 0x10d4]
jae 0x41878e
lea eax, [ebp - 0x10d4]
push ecx
push 0x800
lea ecx, [ebp - 0x1010]
push ecx
push 0x514388
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4187b1
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x10b8]
call fcn.004021e0
cmp dword [ebp - 0x10a8], ebx
jne 0x4189dc
lea eax, [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x10f0]
call fcn.00417950
push eax
lea ecx, [ebp - 0x1048]
push ecx
mov byte [ebp - 4], 9
call fcn.00417570
lea edx, [ebp - 0x1080]
push edx
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00416a10
mov edx, dword [ebp - 0x10f4]
mov esi, 8
add esp, 0x10
cmp dword [edx + 0x14], esi
jb 0x418829
mov edx, dword [edx]
cmp dword [eax + 0x14], esi
jb 0x418830
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10d4]
cmp dword [ebp - 0x10c0], esi
jae 0x418844
lea ecx, [ebp - 0x10d4]
push edx
push 0x800
lea edx, [ebp - 0x1010]
push edx
push 0x514388
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x106c], esi
jb 0x418875
mov eax, dword [ebp - 0x1080]
push eax
call fcn.004b9d66
add esp, 4
xor ecx, ecx
mov esi, 0x10
mov dword [ebp - 0x106c], 7
mov dword [ebp - 0x1070], ebx
mov word [ebp - 0x1080], cx
cmp dword [ebp - 0x1034], esi
jb 0x4188aa
mov edx, dword [ebp - 0x1048]
push edx
call fcn.004b9d66
add esp, 4
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], ebx
mov byte [ebp - 0x1048], bl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1018], esi
jb 0x4188db
mov eax, dword [ebp - 0x102c]
push eax
call fcn.004b9d66
add esp, 4
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x1064]
call fcn.00402890
lea edx, [ebp - 0x102c]
push edx
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], 0xb
call fcn.00417950
push eax
lea eax, [ebp - 0x1048]
push eax
mov byte [ebp - 4], 0xc
call fcn.00417700
lea ecx, [ebp - 0x1080]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.00416a10
add esp, 0x10
push eax
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], 0xe
call fcn.00401720
cmp dword [ebp - 0x106c], 8
jb 0x418951
mov edx, dword [ebp - 0x1080]
push edx
call fcn.004b9d66
add esp, 4
xor eax, eax
mov dword [ebp - 0x106c], 7
mov dword [ebp - 0x1070], ebx
mov word [ebp - 0x1080], ax
cmp dword [ebp - 0x1034], esi
jb 0x418981
mov ecx, dword [ebp - 0x1048]
push ecx
call fcn.004b9d66
add esp, 4
mov dword [ebp - 0x1034], 0xf
mov dword [ebp - 0x1038], ebx
mov byte [ebp - 0x1048], bl
cmp dword [ebp - 0x1018], esi
jb 0x4189ae
mov edx, dword [ebp - 0x102c]
push edx
call fcn.004b9d66
add esp, 4
cmp dword [ebp - 0x1050], 8
mov dword [ebp - 0x1018], 0xf
mov dword [ebp - 0x101c], ebx
mov byte [ebp - 0x102c], bl
jb 0x4189dc
mov eax, dword [ebp - 0x1064]
push eax
call fcn.004b9d66
add esp, 4
cmp dword [ebp - 0x10dc], 8
jb 0x4189f4
mov ecx, dword [ebp - 0x10f0]
push ecx
call fcn.004b9d66
add esp, 4
xor edx, edx
cmp dword [ebp - 0x10c0], 8
mov dword [ebp - 0x10dc], 7
mov dword [ebp - 0x10e0], ebx
mov word [ebp - 0x10f0], dx
mov byte [ebp - 4], bl
jb 0x418a28
mov eax, dword [ebp - 0x10d4]
push eax
call fcn.004b9d66
add esp, 4
cmp dword [ebp - 0x10a8], ebx
jne 0x418a75
mov ecx, dword [ebp - 0x10f4]
mov ecx, dword [ecx + 0x48]
cmp ecx, ebx
je 0x418a75
push edi
lea edx, [ebp - 0x1080]
push edx
call fcn.00417fc0
push eax
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], 0xf
call fcn.00401720
cmp dword [ebp - 0x106c], 8
mov byte [ebp - 4], bl
jb 0x418a75
mov eax, dword [ebp - 0x1080]
push eax
call fcn.004b9d66
add esp, 4
lea ecx, [ebp - 0x10b8]
push ecx
lea edx, [ebp - 0x109c]
push edi
push edx
call fcn.00417e00
add esp, 0xc
mov esi, dword [ebp - 0x1104]
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.00406010
push eax
lea eax, [ebp - 0x1108]
push eax
mov ecx, esi
call fcn.00405d00
mov edi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x106c], edi
jb 0x418acd
mov ecx, dword [ebp - 0x1080]
push ecx
call fcn.004b9d66
add esp, 4
xor edx, edx
mov dword [ebp - 0x106c], 7
mov dword [ebp - 0x1070], ebx
mov word [ebp - 0x1080], dx
cmp dword [ebp - 0x1088], edi
jb 0x418afd
mov eax, dword [ebp - 0x109c]
push eax
call fcn.004b9d66
add esp, 4
mov esi, dword [ebp - 0x10f8]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edx, [ebp - 0x10b8]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00401720
cmp dword [ebp - 0x10a4], edi
jb 0x418b37
mov eax, dword [ebp - 0x10b8]
push eax
call fcn.004b9d66
add esp, 4
mov eax, esi
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.004ba901
mov esp, ebp
pop ebp
ret 8