Function at 0x427820
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44e1b9
push eax
mov eax, 0x100c
mov dword fs:[0], esp
call fcn.004473e0
push esi
push edi
mov eax, dword [esp + 0x1024]
xor esi, esi
push eax
mov dword [esp + 0x1020], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427896
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1024]
lea edx, [esp + 0x14]
stosw word es:[edi], ax
mov eax, dword [esp + 0x1028]
push ecx
push 0x7ff
push edx
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, esi
jne 0x4278d2
mov eax, dword [esp + 0x1024]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4278cb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4278cb
mov edx, dword [esp + 0x1024]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
xor eax, eax
jmp 0x427b8e
lea eax, [esp + 0x14]
lea edi, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x427b72
push ebx
push ebp
mov eax, dword [0x463290]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push 0x4675b0
push edi
mov byte [esp + 0x102c], 2
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
mov ebx, eax
test edi, edi
jne 0x427919
xor eax, eax
jmp 0x427920
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.00404f60
mov esi, ebx
lea ecx, [esp + 0x18]
sub esi, edi
sar esi, 1
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.00415370
mov ebp, eax
mov eax, dword [ebp]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
mov byte [esp + 0x1024], 3
je 0x42799a
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x427969
mov edx, dword [0x463294]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x427970
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x427980
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00404f60
jmp 0x42799a
lea ecx, [esp + 0x10]
call fcn.00402f00
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
add ebp, 0xfffffff4
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x18]
mov edx, dword [0x463294]
mov byte [esp + 0x1024], 2
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4279d5
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4279db
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.0044737a
add esp, 4
jmp 0x4279db
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test ebx, ebx
je 0x427b09
cmp ebx, edi
jbe 0x427b09
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebp
inc esi
cmp esi, eax
jge 0x427a12
lea esi, [ebx + 2]
test esi, esi
jne 0x427a04
xor eax, eax
jmp 0x427a07
push esi
call ebp
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00404f60
mov eax, 0x467690
test eax, eax
je 0x427a8a
push eax
call ebp
test eax, eax
je 0x427a8a
lea ecx, [esp + 0x10]
call fcn.00414e10
mov esi, dword [esp + 0x10]
cmp word [esi], 0
je 0x427a8a
mov ax, word [esi]
push eax
push 0x467690
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x427a5a
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp word [esi], 0
jne 0x427a35
mov eax, dword [esp + 0x10]
cmp esi, eax
je 0x427a8a
mov ebp, dword [eax - 8]
mov ecx, esi
sub ecx, eax
sar ecx, 1
sub ebp, ecx
lea edx, [ebp + ebp + 2]
push edx
push esi
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax - 8], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x467690
lea ecx, [esp + 0x14]
call fcn.00427d40
push 0x467690
lea ecx, [esp + 0x18]
call fcn.00427e00
push 0x467690
lea ecx, [esp + 0x18]
call fcn.00427d40
mov ecx, dword [esp + 0x1034]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.00414c10
mov ecx, dword [esp + 0x1038]
lea edx, [esp + 0x14]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.00414c10
push edi
call ebp
lea ecx, [esp + 0x14]
lea edi, [edi + eax*2 + 2]
mov byte [esp + 0x1024], 1
call fcn.0043c2e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1024], 0
call fcn.0043c2e0
jmp 0x427b65
mov eax, dword [esp + 0x14]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x427b34
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x427b34
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.0044737a
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x427b5f
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x427b5f
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.0044737a
add esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebp
test eax, eax
jne 0x4278eb
pop ebp
pop ebx
lea ecx, [esp + 0x1024]
mov dword [esp + 0x101c], 0xffffffff
call fcn.0043c2e0
mov eax, 1
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1018
ret 0x10