Function at 0x4a0f50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x606d34
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x278]
push 0
mov dword [esp + 0x274], 0
mov eax, dword [esp + 0x280]
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x48], esp
mov esi, esp
mov dword [esp + 0x48], eax
call fcn.0040a210
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp + 0x1054]
push eax
mov dword [esp + 0x68], eax
call fcn.004a5030
lea edi, [ebp + 0x1170]
lea eax, [esp + 0x27c]
call fcn.0040ab90
lea eax, [esp + 0x24]
push eax
mov ecx, 0x6244e0
call fcn.00409dd0
cmp dword [esp + 0x284], 0
lea ecx, [ebp + 0x1f94]
lea edx, [esp + 0x18]
push ecx
mov byte [esp + 0x274], 1
push edx
je 0x4a1026
mov ebx, str.FrameConfig_tmp.ini
call fcn.0040aab0
add esp, 8
mov byte [esp + 0x270], 2
jmp 0x4a103b
mov ebx, str.FrameConfig.ini
call fcn.0040aab0
add esp, 8
mov byte [esp + 0x270], 3
lea edi, [esp + 0x24]
call fcn.0040ab90
mov byte [esp + 0x270], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a106c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x208
lea ecx, [esp + 0x60]
push 0
push ecx
call fcn.005da970
add esp, 0xc
cmp dword [esp + 0x280], 0
jne 0x4a10aa
mov edx, dword [esp + 0x24]
push edx
push 0x104
lea eax, [esp + 0x64]
push eax
push 0x6244e0
push 0x631398
push str.cand
jmp 0x4a10c8
mov ecx, dword [esp + 0x24]
push ecx
push 0x104
lea edx, [esp + 0x64]
push edx
push 0x6244e0
push 0x631398
push str.status
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
call fcn.00409dd0
mov byte [esp + 0x270], 4
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
je 0x4a13c2
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
xor esi, esi
add eax, 1
mov edx, dword [ecx - 0xc]
js 0x4a113d
cmp eax, edx
jge 0x4a113d
lea ecx, [ecx + eax*2]
push 0x2c
push ecx
call fcn.005d33c4
mov ecx, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x4a113d
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4a113d
mov dword [esp + esi*4 + 0x40], eax
add esi, 1
cmp esi, 3
jl 0x4a1106
cmp esi, 3
jne 0x4a13c2
mov esi, dword [esp + 0x40]
lea edx, [esp + 0x1c]
push edx
mov eax, esi
xor ecx, ecx
lea edx, [esp + 0x1c]
call fcn.00409f60
mov eax, dword [eax]
push 0xa
push 0
push eax
call fcn.005d4172
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a118f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 1]
mov esi, dword [esp + 0x44]
lea edx, [esp + 0x1c]
push edx
mov eax, esi
lea edx, [esp + 0x1c]
call fcn.00409f60
mov eax, dword [eax]
push 0xa
push 0
push eax
call fcn.005d4172
mov ebx, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x30], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a11db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 1]
mov esi, dword [esp + 0x48]
lea edx, [esp + 0x1c]
push edx
mov eax, esi
lea edx, [esp + 0x1c]
call fcn.00409f60
mov eax, dword [eax]
push 0xa
push 0
push eax
call fcn.005d4172
mov edi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x34], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a1227
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 1]
lea esi, [esp + 0x54]
lea edx, [esp + 0x1c]
call fcn.00409f40
mov eax, dword [eax]
push 0xa
push 0
push eax
call fcn.005d4172
mov esi, eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x38], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a126c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0x11d8], 0
je 0x4a13b1
mov ecx, dword [ebp + 0x11cc]
sub ecx, dword [ebp + 0x11c4]
je 0x4a13b1
mov ecx, dword [esp + 0x2c]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x18], eax
je 0x4a13b1
mov edx, dword [ebp + 0x11d0]
sub edx, dword [ebp + 0x11c8]
mov eax, dword [ebp + 0x11cc]
sub eax, dword [ebp + 0x11c4]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov eax, esi
sub eax, ebx
mov dword [esp + 0x20], eax
fdivp st(1)
fstp dword [esp + 0x50]
fild dword [esp + 0x20]
fidiv dword [esp + 0x18]
fstp dword [esp + 0x28]
fld dword [esp + 0x50]
fld st(0)
fld dword [esp + 0x28]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fabs
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fcomp qword [0x640808]
fnstsw ax
test ah, 0x41
jne 0x4a13ad
fcomp st(1)
mov ebp, ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], esi
fnstsw ax
fldz
fcomp st(1)
test ah, 5
fnstsw ax
jp 0x4a1345
test ah, 5
jp 0x4a135f
fidivr dword [esp + 0x20]
fiadd dword [esp + 0x2c]
call fcn.005f4400
mov edi, eax
mov dword [esp + 0x34], edi
jmp 0x4a1361
test ah, 5
jp 0x4a135f
fimul dword [esp + 0x18]
fiadd dword [esp + 0x30]
call fcn.005f4400
mov esi, eax
mov dword [esp + 0x38], esi
jmp 0x4a1361
fstp st(0)
mov eax, dword [esp + 0x48]
mov ecx, edi
sub ecx, dword [esp + 0x2c]
sub eax, ebp
cmp eax, ecx
jle 0x4a1388
sub eax, edi
add eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
add eax, ebp
add ecx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x4c]
mov ecx, esi
sub eax, ebx
sub ecx, ebx
cmp eax, ecx
jle 0x4a13b1
sub eax, esi
add eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
add ecx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ecx
jmp 0x4a13b1
fstp st(1)
fstp st(0)
mov esi, dword [esp + 0x58]
lea eax, [esp + 0x2c]
call fcn.004a5c00
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
mov byte [esp + 0x270], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a13e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x270], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a140e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x270], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a1436
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.005d28b3
add esp, 0x260
ret 0x10