Function at 0x47f2e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48815c
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x40], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x36c], ecx
mov dword [ebp - 0xb0], 1
mov ax, word [0x494dec]
mov word [ebp - 0x15c], ax
push 0x7e
push 0
lea ecx, [ebp - 0x15a]
push ecx
call fcn.00453b10
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.004838a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.0040eac0
mov byte [ebp - 4], 1
push str.kbq.dat
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x90]
call fcn.0040e7e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00403760
push eax
push 0
push 0x494e00
push 0x494e0c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x47f397
jmp 0x47f408
push 0
call fcn.0047efa0
add esp, 4
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x74]
push eax
call fcn.0047efc0
add esp, 0x10
fstp qword [ebp - 0xd4]
fld qword [0x49bb40]
fcomp qword [ebp - 0xd4]
fnstsw ax
test ah, 0x41
jp 0x47f3d9
jmp 0x47f408
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00403740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.0040e720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00483840
jmp 0x47f5e0
push 0x494e1c
lea ecx, [ebp - 0xac]
call fcn.00403700
mov byte [ebp - 4], 3
push 0x494e20
lea ecx, [ebp - 0xcc]
call fcn.00403700
mov byte [ebp - 4], 4
call fcn.00473230
mov dword [ebp - 0xd8], eax
lea ecx, [ebp - 0x6c]
call fcn.0040eb20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
push ecx
call fcn.0040dc80
mov ecx, eax
call fcn.00474120
lea ecx, [ebp - 0x6c]
call fcn.0040eb70
movzx edx, al
test edx, edx
jne 0x47f521
lea ecx, [ebp - 0x6c]
call fcn.0040eb90
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
add ecx, 0x1c
call fcn.00401b70
push eax
lea ecx, [ebp - 0x264]
call fcn.0040bf80
mov dword [ebp - 0x370], eax
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x374], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x374]
call fcn.0041e8b0
push eax
lea ecx, [ebp - 0xac]
call fcn.0040bec0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x264]
call fcn.00403560
mov ecx, dword [ebp - 0x160]
call fcn.00401b70
push eax
lea ecx, [ebp - 0x368]
call fcn.0040bf80
mov dword [ebp - 0x378], eax
mov ecx, dword [ebp - 0x378]
mov dword [ebp - 0x37c], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x37c]
call fcn.0041e8b0
push eax
lea ecx, [ebp - 0xcc]
call fcn.0040bec0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x368]
call fcn.00403560
mov edx, dword [ebp - 0xd8]
push edx
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00484510
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x47f58c
push 0xa
push 0x40
lea edx, [ebp - 0x15c]
push edx
push 0
call fcn.0047efa0
add esp, 4
push edx
push eax
call fcn.0045402f
add esp, 0x14
lea ecx, [ebp - 0x5c]
call fcn.00403760
push eax
lea eax, [ebp - 0x15c]
push eax
push str.tlast
push str.active
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6c]
call fcn.0040eb50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xcc]
call fcn.00403740
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.00403740
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00403740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.0040e720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00483840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret