Function at 0x5f6e20
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x69bd5e
push eax
mov eax, 0x216c
mov dword fs:[0], esp
call fcn.006746a0
mov al, byte [0x6dfe28]
push ebx
push ebp
push esi
mov dword [esp + 0x40], ecx
push edi
mov byte [esp + 0x78], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x79]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x6e25dc]
test eax, eax
jne 0x5f6e6e
mov eax, 0x6a3560
lea ecx, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea edx, [esp + 0x78]
push 0x6d7ea8
push edx
call dword [sym.imp.kernel32.dll_lstrcatA]
lea eax, [esp + 0x78]
push eax
push 0
push 0x6d5484
push 0x6d7ea0
call dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
mov ebx, eax
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x17c]
xor esi, esi
mov dword [esp + 0x14], ebx
test ebx, ebx
rep stosd dword es:[edi], eax
jle 0x5f6f1e
mov ebx, dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
lea ebp, [esp + 0x17c]
mov cl, byte [0x6dfe28]
xor eax, eax
mov byte [esp + 0x48], cl
mov ecx, 7
lea edi, [esp + 0x49]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x4c]
push 0x6d7e98
push edx
stosb byte es:[edi], al
call fcn.0067429f
add esp, 0xc
lea eax, [esp + 0x78]
lea ecx, [esp + 0x48]
push eax
push 0x20
push ebp
push 0x6dfe28
push ecx
push 0x6d7ea0
call ebx
mov eax, dword [esp + 0x14]
inc esi
add ebp, 0x20
cmp esi, eax
jl 0x5f6eca
mov ebx, eax
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x6c], dl
call fcn.004031c0
lea eax, [esp + 0x68]
mov dword [esp + 0x2184], 0
push eax
push 0x19d1
call fcn.00615080
mov cl, byte [esp + 0x1b]
add esp, 8
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
push 0
call fcn.004031c0
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
call fcn.00403350
test al, al
je 0x5f6fa5
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6dfe28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00403330
xor esi, esi
lea eax, [esp + 0x1c]
push esi
push esi
push esi
lea ecx, [esp + 0x74]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
mov byte [esp + 0x219c], 1
call fcn.00646ba0
add esp, 0x18
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2188], 1
call fcn.004031c0
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x2188], 0
call fcn.004031c0
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
call dword [eax + 0x24]
call dword [sym.imp.kernel32.dll_GetTickCount]
push eax
call fcn.00674662
add esp, 4
cmp ebx, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], esi
jle 0x5f7070
lea ecx, [ebx*4]
push ecx
call fcn.00673b05
add esp, 4
cmp eax, esi
mov dword [esp + 0x2c], eax
je 0x5f7187
mov ebp, eax
jmp 0x5f7037
mov ebx, dword [esp + 0x14]
cmp esi, ebx
jge 0x5f7187
xor bl, bl
call fcn.0067466f
cdq
idiv dword [esp + 0x14]
test esi, esi
mov edi, edx
jle 0x5f7067
mov eax, dword [esp + 0x2c]
mov ecx, esi
cmp dword [eax], edi
jne 0x5f705d
mov bl, 1
add eax, 4
dec ecx
jne 0x5f7057
test bl, bl
jne 0x5f7033
mov dword [ebp], edi
inc esi
add ebp, 4
jmp 0x5f7033
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], dl
call fcn.004031c0
mov edi, 0x6d7e84
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
call fcn.00403350
test al, al
je 0x5f70c8
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov eax, ecx
mov esi, 0x6d7e84
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov byte [ecx + ebp], 0
mov dl, byte [esp + 0x13]
mov byte [esp + 0x2184], 3
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], dl
call fcn.004031c0
mov edi, 0x6d7e74
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
call fcn.00403350
test al, al
je 0x5f7129
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov eax, ecx
mov esi, 0x6d7e74
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], ebp
mov byte [ecx + ebp], 0
push 0
push 1
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
mov byte [esp + 0x219c], 4
call fcn.00646ba0
add esp, 0x18
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2188], 4
call fcn.004031c0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x2188], 3
call fcn.004031c0
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x2188], 0
call fcn.004031c0
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x18], ebp
jle 0x5f7391
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x5f720a
mov eax, dword [edi]
test eax, eax
jl 0x5f720a
shl eax, 5
lea esi, [esp + eax + 0x17c]
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
je 0x5f720a
mov edx, dword [0x6e29ac]
mov ecx, dword [0x818984]
push 0x3afc
push esi
push edx
call fcn.004513d0
test eax, eax
mov dword [esp + 0x40], eax
je 0x5f71ed
inc ebp
add edi, 4
cmp ebp, ebx
jl 0x5f7199
mov dword [esp + 0x18], ebp
jmp 0x5f7391
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], ebp
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x5f7391
call fcn.00609ee0
jmp 0x5f7391
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebp
call fcn.004031c0
mov edi, 0x6d7e84
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
call fcn.00403350
test al, al
je 0x5f7267
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6d7e84
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov byte [eax + ebp], 0
mov cl, byte [esp + 0x13]
mov bl, 6
mov byte [esp + 0x2184], bl
xor esi, esi
mov byte [esp + 0x30], cl
push esi
lea ecx, [esp + 0x34]
call fcn.004031c0
mov edi, 0x6d7e74
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
call fcn.00403350
test al, al
je 0x5f72cc
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6d7e74
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ebp
xor esi, esi
mov byte [eax + ebp], 0
push esi
push 1
lea ecx, [esp + 0x24]
push esi
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x58]
push edx
push eax
mov byte [esp + 0x219c], 7
call fcn.00646ba0
add esp, 0x18
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x2184], 7
cmp eax, esi
je 0x5f731c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x5f7313
cmp al, 0xff
je 0x5f7313
dec al
mov byte [ecx], al
jmp 0x5f731c
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
cmp ecx, esi
mov byte [esp + 0x2184], bl
je 0x5f7352
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x5f7349
cmp al, 0xff
je 0x5f7349
dec al
mov byte [ecx], al
jmp 0x5f7352
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
cmp ecx, esi
mov byte [esp + 0x2184], 0
je 0x5f7389
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x5f7380
cmp al, 0xff
je 0x5f7380
dec al
mov byte [ecx], al
jmp 0x5f7389
push ecx
call fcn.006713a0
add esp, 4
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
cmp ebp, ebx
jne 0x5f742f
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov byte [0x818a24], 0
call fcn.004031c0
mov edi, 0x6d7e64
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
call fcn.00403350
test al, al
je 0x5f73f9
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6d7e64
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x40]
push 1
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x2190], 9
call fcn.00647bf0
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2184], 0
push 1
call fcn.004031c0
mov byte [0x818a24], 1
lea eax, [esp + 0x68]
push eax
call fcn.00646c10
add esp, 4
test ebx, ebx
pop edi
pop esi
pop ebp
pop ebx
jle 0x5f7451
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x2174], 0xffffffff
test ecx, ecx
je 0x5f7493
mov al, byte [ecx - 1]
test al, al
je 0x5f7489
cmp al, 0xff
je 0x5f7489
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x216c]
mov dword fs:[0], ecx
add esp, 0x2178
ret
dec ecx
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x216c]
mov dword fs:[0], ecx
add esp, 0x2178
ret