Function at 0x4187c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5b59
mov eax, dword fs:[0]
push eax
mov eax, 0x10c8
call fcn.004b6430
mov eax, dword [0x542488]
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 edi, ecx
mov dword [ebp - 0x10c4], edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10bc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10c8], eax
lea eax, [ebp - 0x10a0]
push esi
push eax
mov dword [ebp - 0x10d4], ebx
call fcn.00414f50
lea eax, [ebp - 0x10a0]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1058]
push eax
call fcn.00417310
lea eax, [ebp - 0x1058]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1028]
push eax
call fcn.00413c30
push 0x1000
lea eax, [ebp - 0x1010]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.004b8860
add esp, 0x24
cmp dword [edi + 0x14], 0
je 0x418b25
mov eax, dword fs:[0x2c]
mov ecx, dword [0x54c638]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x547b94]
cmp eax, dword [ecx + 4]
jg 0x418cb2
cmp dword [ebx + 0x10], 0
je 0x41894e
push ebx
lea eax, [ebp - 0x107c]
mov ecx, 0x547b8c
push eax
call fcn.00405030
mov edi, dword [ebp - 0x1074]
cmp byte [edi + 0xd], 0
jne 0x41894e
lea eax, [edi + 0x10]
mov ecx, 0x547b8c
push eax
push ebx
call fcn.00405720
test al, al
jne 0x41894e
cmp edi, dword [0x547b8c]
je 0x41894e
mov eax, dword [ebp - 0x10c4]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4188f2
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x4188fa
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x418902
mov ebx, dword [ebx]
push eax
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x503648
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x1010]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x418925
sub edx, ecx
lea eax, [ebp - 0x1010]
mov ecx, dword [ebp - 0x10bc]
sar edx, 1
push edx
push eax
call fcn.00407d30
xor bl, bl
jmp 0x418baa
push esi
lea ecx, [ebp - 0x1040]
call fcn.00402970
cmp dword [ebp - 0x102c], 8
lea eax, [ebp - 0x1040]
mov edx, dword [ebp - 0x1040]
lea ecx, [ebp - 0x1040]
cmovae eax, edx
mov byte [ebp - 4], 4
mov dword [ebp - 0x10cc], eax
lea edi, [ebp - 0x1040]
mov eax, dword [ebp - 0x1030]
cmovae ecx, edx
cmovae edi, edx
lea eax, [ecx + eax*2]
cmp edi, eax
je 0x4189c0
mov esi, dword [ebp - 0x10cc]
mov ebx, eax
sub esi, edi
movzx eax, word [edi]
push eax
call fcn.004c6afa
mov word [esi + edi], ax
add esp, 4
add edi, 2
cmp edi, ebx
jne 0x4189a3
mov ebx, dword [ebp - 0x10d4]
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x10b8]
push eax
call fcn.00414f50
push eax
lea eax, [ebp - 0x1088]
mov byte [ebp - 4], 5
push eax
call fcn.00417310
push eax
lea eax, [ebp - 0x1070]
mov byte [ebp - 4], 6
push eax
call fcn.00413c30
add esp, 0x18
lea ecx, [ebp - 0x1088]
call fcn.004089c0
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 4], 9
call fcn.004089c0
mov edi, dword [ebp - 0x10c4]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
mov edx, esi
jb 0x418a25
mov edx, dword [esi]
cmp dword [ebp - 0x105c], 8
lea eax, [ebp - 0x1070]
mov ecx, ebx
cmovae eax, dword [ebp - 0x1070]
cmp dword [ebx + 0x14], 8
jb 0x418a43
mov ecx, dword [ebx]
push edx
push 0x800
lea edx, [ebp - 0x1010]
push edx
push 0x503648
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418a66
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x10bc]
push eax
call fcn.00407d30
mov eax, dword [ebp - 0x10bc]
cmp dword [eax + 0x10], 0
jne 0x418b02
cmp dword [esi + 0x14], 8
jb 0x418a9c
mov esi, dword [esi]
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x1028]
mov ecx, ebx
cmovae eax, dword [ebp - 0x1028]
cmp dword [ebx + 0x14], 8
jb 0x418aba
mov ecx, dword [ebx]
push esi
push 0x800
lea edx, [ebp - 0x1010]
push edx
push 0x503648
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418ae0
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x10bc]
push eax
call fcn.00407d30
mov eax, dword [ebp - 0x10c8]
lea ecx, [ebp - 0x1070]
mov byte [eax], 1
call fcn.00402400
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 2
call fcn.00402400
mov esi, dword [ebp - 0x10bc]
cmp dword [esi + 0x10], 0
jne 0x418ba8
cmp dword [edi + 0x2c], 0
je 0x418ba8
cmp dword [edi + 0x30], 8
lea eax, [edi + 0x1c]
jb 0x418b42
mov eax, dword [eax]
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x1028]
cmovae ecx, dword [ebp - 0x1028]
cmp dword [ebx + 0x14], 8
jb 0x418b5e
mov ebx, dword [ebx]
push eax
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x503648
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418b81
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407d30
mov eax, dword [ebp - 0x10c8]
mov byte [eax], 0
mov bl, 1
mov edx, dword [ebp - 0x1014]
cmp edx, 8
jb 0x418bea
mov ecx, dword [ebp - 0x1028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418be0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418d00
push edx
push ecx
call fcn.004b5e6a
add esp, 8
mov edx, dword [ebp - 0x1044]
xor eax, eax
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 7
mov word [ebp - 0x1028], ax
cmp edx, 0x10
jb 0x418c41
mov ecx, dword [ebp - 0x1058]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418c37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418d00
push edx
push ecx
call fcn.004b5e6a
add esp, 8
mov edx, dword [ebp - 0x108c]
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1044], 0xf
mov byte [ebp - 0x1058], 0
cmp edx, 0x10
jb 0x418c92
mov ecx, dword [ebp - 0x10a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418c88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418d00
push edx
push ecx
call fcn.004b5e6a
add esp, 8
mov al, bl
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.004b5e78
mov esp, ebp
pop ebp
ret 0x10
push 0x547b94
call fcn.004b6104
add esp, 4
cmp dword [0x547b94], 0xffffffff
jne 0x41889a
push 0x547b8c
lea ecx, [ebp - 0x10bd]
mov byte [ebp - 4], 3
call fcn.00410e70
push 0x501500
call fcn.004b6416
push 0x547b94
mov byte [ebp - 4], 2
call fcn.004b60ba
add esp, 8
jmp 0x41889a
call fcn.004c19b9
int3