Function at 0x46ed78
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500750
mov eax, dword fs:[0]
push eax
mov eax, 0x2a1c
call fcn.004e7570
mov eax, dword [0x5415b0]
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 dword [ebp - 0x2a20], ecx
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x218], ax
mov edi, ebx
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004db6f0
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2a18], ax
lea eax, [ebp - 0x2a16]
push ebx
push eax
call fcn.004db6f0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
add esp, 0x18
push dword [0x543e38]
push 0x104
push eax
push 0x50e6f0
push str.guid
push str.tempuser
call esi
push dword [0x543e38]
lea eax, [ebp - 0x2a18]
push 0x1000
push eax
push 0x50e6f0
push str.cookie
push str.tempuser
call esi
cmp word [ebp - 0x218], bx
je 0x46ee51
cmp word [ebp - 0x2a18], bx
je 0x46ee51
inc edi
jmp 0x46ef1e
mov eax, dword [0x542750]
mov dword [ebp - 0x2a1c], eax
push str.tempuser.ini
push 0x547f70
lea eax, [ebp - 0x2a1c]
mov dword [ebp - 4], ebx
push 0x50de04
push eax
call fcn.0040301c
add esp, 0x10
mov dword [ebp - method.CIniFile.virtual_0], vtable.CIniFile.0
lea ecx, [ebp - 0x2a28]
mov dword [ebp - 0x2a24], ebx
push dword [ebp - 0x2a1c]
call fcn.0043092d
push dword [ebp - 0x2a24]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x50e6f0
push str.guid
push str.tempuser
call esi
push dword [ebp - 0x2a24]
lea eax, [ebp - 0x2a18]
push 0x1000
push eax
push 0x50e6f0
push str.cookie
push str.tempuser
call esi
cmp word [ebp - 0x218], 0
je 0x46eefc
xor eax, eax
inc eax
cmp word [ebp - 0x2a18], 0
cmovne edi, eax
lea ecx, [ebp - 0x2a28]
call fcn.00430a58
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a1c]
call fcn.00403030
test edi, edi
je 0x46f009
mov ecx, dword [ebp - 0x2a20]
lea eax, [ebp - 0x218]
push eax
add ecx, 0xc
call fcn.004028a2
push 0x7ff
lea eax, [ebp - 0xa17]
mov byte [ebp - 0xa18], bl
push ebx
push eax
call fcn.004db6f0
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x46ef57
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x46ef79
mov dword [ebp - 0x2a1c], ebx
jmp 0x46ef98
add esi, esi
mov eax, esi
call fcn.004dfec0
mov ecx, esp
lea edx, [ebp - 0x218]
push 3
push esi
call fcn.00404eea
mov dword [ebp - 0x2a1c], eax
lea ecx, [ebp - 0x2a18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x46efa1
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jg 0x46efd6
add esi, esi
mov eax, esi
call fcn.004dfec0
mov ecx, esp
lea edx, [ebp - 0x2a18]
push 3
push esi
call fcn.00404eea
mov ebx, eax
push ecx
push dword [ebp - 0x2a1c]
lea edx, [ebp - 0xa18]
mov ecx, ebx
push 0x800
call fcn.00434c38
mov ecx, dword [ebp - 0x2a20]
lea eax, [ebp - 0xa18]
add esp, 0xc
lea ecx, [ecx + 8]
push eax
call fcn.004137a6
jmp 0x46f01e
mov ecx, dword [ebp - 0x2a20]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ecx + 0xc]
call fcn.004028a2
mov eax, edi
lea esp, [ebp - 0x2a38]
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.004d5e2a
mov esp, ebp
pop ebp
ret