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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x75b31e
push eax
mov eax, 0x216c
mov dword fs:[0], esp
call fcn.00727710
mov al, byte [0x7c4d88]
push ebx
push ebp
push esi
mov ebx, 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 [0x80563c]
mov dword [esp + 0x44], ebx
test eax, eax
jne 0x682aa0
mov eax, 0x765608
lea ecx, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea edx, [esp + 0x78]
push 0x7a9de8
push edx
call dword [sym.imp.kernel32.dll_lstrcatA]
lea eax, [esp + 0x78]
push eax
push 0
push 0x7a5af0
push 0x7a9de0
call dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
mov edx, eax
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x17c]
xor esi, esi
mov dword [esp + 0x28], edx
test edx, edx
rep stosd dword es:[edi], eax
jle 0x682b52
mov ebx, dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
lea ebp, [esp + 0x17c]
mov cl, byte [0x7c4d88]
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 0x7a9dd8
push edx
stosb byte es:[edi], al
call fcn.00727335
add esp, 0xc
lea eax, [esp + 0x78]
lea ecx, [esp + 0x48]
push eax
push 0x20
push ebp
push 0x7c4d88
push ecx
push 0x7a9de0
call ebx
mov eax, dword [esp + 0x28]
inc esi
add ebp, 0x20
cmp esi, eax
jl 0x682afc
mov ebx, dword [esp + 0x44]
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x6c], dl
call fcn.00404760
lea eax, [esp + 0x68]
mov dword [esp + 0x2184], 0
push eax
push 0x19d1
call fcn.006a8c20
mov cl, byte [esp + 0x1b]
add esp, 8
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x14]
push 0
call fcn.00404760
mov edi, 0x7c4d88
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00401450
test al, al
je 0x682bd9
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x7c4d88
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 + 0x18]
call fcn.00404970
xor esi, esi
lea eax, [esp + 0x14]
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.006f9ae0
add esp, 0x18
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2188], 1
call fcn.00404760
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2188], 0
call fcn.00404760
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
call dword [sym.imp.kernel32.dll_GetTickCount]
push eax
call fcn.007276dc
mov ebx, dword [esp + 0x2c]
add esp, 4
cmp ebx, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], esi
jle 0x682ca4
lea ecx, [ebx*4]
push ecx
call fcn.00726f70
add esp, 4
cmp eax, esi
mov dword [esp + 0x24], eax
je 0x682db7
mov ebp, eax
mov ebx, dword [esp + 0x28]
cmp esi, ebx
jge 0x682db7
xor bl, bl
call fcn.007276e9
cdq
idiv dword [esp + 0x28]
test esi, esi
mov edi, edx
jle 0x682c9b
mov eax, dword [esp + 0x24]
mov ecx, esi
cmp dword [eax], edi
jne 0x682c91
mov bl, 1
add eax, 4
dec ecx
jne 0x682c8b
test bl, bl
jne 0x682c67
mov dword [ebp], edi
inc esi
add ebp, 4
jmp 0x682c67
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], dl
call fcn.00404760
mov edi, 0x7a9dc4
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.00401450
test al, al
je 0x682cfa
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov eax, ecx
mov esi, 0x7a9dc4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
call fcn.00404970
mov cl, byte [esp + 0x13]
mov byte [esp + 0x2184], 3
mov byte [esp + 0x14], cl
push 0
lea ecx, [esp + 0x18]
call fcn.00404760
mov edi, 0x7a9db4
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00401450
test al, al
je 0x682d59
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x7a9db4
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 + 0x18]
call fcn.00404970
push 0
push 1
lea eax, [esp + 0x38]
push 0
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
mov byte [esp + 0x219c], 4
call fcn.006f9ae0
add esp, 0x18
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2188], 4
call fcn.00404760
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2188], 3
call fcn.00404760
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x2188], 0
call fcn.00404760
test ebx, ebx
mov dword [esp + 0x2c], 0
jle 0x682fd7
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.kernel32.dll_lstrlenA]
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
je 0x682e83
mov eax, dword [ebp]
cmp eax, edi
jl 0x682e83
shl eax, 5
lea esi, [esp + eax + 0x17c]
push esi
call ebx
test eax, eax
je 0x682e83
mov eax, dword [0x805a1c]
mov ecx, dword [0x93cbf4]
push 0x3afc
push esi
push eax
call fcn.0045c320
mov esi, dword [0x93cbf4]
mov edi, eax
mov dword [esp + 0x40], edi
mov eax, dword [esi + 0x4003c]
mov dword [esi + 0x40038], 1
test eax, eax
jne 0x682e49
push 0x4000
call fcn.00726f70
add esp, 4
mov dword [esi + 0x4003c], eax
test edi, edi
je 0x682e6a
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
inc eax
add ebp, 4
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x682dd1
jmp 0x682fd7
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x682fd7
call fcn.00698a90
jmp 0x682fd7
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov edi, 0x7a9dc4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov dl, byte [esp + 0x13]
not ecx
dec ecx
mov byte [esp + 0x30], dl
push ecx
push 0x7a9dc4
lea ecx, [esp + 0x38]
call fcn.004047b0
mov al, byte [esp + 0x13]
mov bl, 6
xor esi, esi
mov byte [esp + 0x2184], bl
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00404760
mov edi, 0x7a9db4
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00401450
test al, al
je 0x682f1a
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x7a9db4
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 + 0x18]
mov dword [esp + 0x1c], ebp
xor esi, esi
mov byte [eax + ebp], 0
push esi
push 1
lea ecx, [esp + 0x38]
push esi
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x58]
push edx
push eax
mov byte [esp + 0x219c], 7
call fcn.006f9ae0
add esp, 0x18
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x2184], 7
cmp eax, esi
je 0x682f6a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x682f61
cmp al, 0xff
je 0x682f61
dec al
mov byte [ecx], al
jmp 0x682f6a
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
cmp ecx, esi
mov byte [esp + 0x2184], bl
je 0x682fa0
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x682f97
cmp al, 0xff
je 0x682f97
dec al
mov byte [ecx], al
jmp 0x682fa0
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
cmp ecx, esi
mov byte [esp + 0x2184], 0
je 0x682fd7
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x682fce
cmp al, 0xff
je 0x682fce
dec al
mov byte [ecx], al
jmp 0x682fd7
push ecx
call fcn.00726ea6
add esp, 4
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x683097
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
mov byte [0x93cc94], 0
call fcn.00404760
mov edi, 0x7a9da4
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00401450
test al, al
je 0x683047
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x7a9da4
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 + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x40]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x2190], 9
call fcn.006fb370
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
mov byte [esp + 0x2184], 0
je 0x683090
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x683087
cmp al, 0xff
je 0x683087
dec al
mov byte [ecx], al
jmp 0x683090
push ecx
call fcn.00726ea6
add esp, 4
mov byte [0x93cc94], 1
lea eax, [esp + 0x68]
push eax
call fcn.006f9b50
add esp, 4
test ebx, ebx
pop edi
pop esi
pop ebp
pop ebx
jle 0x6830b9
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x2174], 0xffffffff
test ecx, ecx
je 0x6830fb
mov al, byte [ecx - 1]
test al, al
je 0x6830f1
cmp al, 0xff
je 0x6830f1
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.00726ea6
add esp, 4
mov ecx, dword [esp + 0x216c]
mov dword fs:[0], ecx
add esp, 0x2178
ret