Function at 0x4081c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b5398
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp + 0x20]
add ebp, 0x1c
xor ebx, ebx
cmp eax, ebx
je 0x408205
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 3
jne 0x4083e9
mov edx, dword [0x4e3844]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3844
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x44], edi
lea esi, [esp + 0x18]
mov dword [esp + 0x3c], ebx
call fcn.00408cc0
mov ecx, 1
mov byte [esp + 0x3c], cl
mov esi, dword [eax]
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x408255
mov ecx, 0x104
lea eax, [esp + 0x44]
call fcn.004012e0
mov edi, dword [esp + 0x44]
push esi
push 0x104
push edi
push str.1.01.21.5
push str.supportrate
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408295
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
jne 0x40829d
xor eax, eax
jmp 0x4082b7
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4082a2
sub eax, edx
sar eax, 1
js 0x408401
cmp eax, dword [edi - 8]
jg 0x408401
push 0x4c20dc
lea ecx, [esp + 0x18]
mov dword [edi - 0xc], eax
push ecx
lea edx, [esp + 0x4c]
mov word [edi + eax*2], bx
mov dword [esp + 0x20], ebx
push edx
lea ebx, [esp + 0x24]
call fcn.0040a3c0
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x4083a4
push eax
call fcn.00496118
fst qword [esp + 0x20]
mov ecx, dword [ebp + 4]
add esp, 4
test ecx, ecx
jne 0x40830e
xor edx, edx
jmp 0x408316
mov edx, dword [ebp + 8]
sub edx, ecx
sar edx, 3
test ecx, ecx
je 0x408333
mov eax, dword [ebp + 0xc]
sub eax, ecx
sar eax, 3
cmp edx, eax
jae 0x408333
mov eax, dword [ebp + 8]
fstp qword [eax]
add eax, 8
mov dword [ebp + 8], eax
jmp 0x408354
mov esi, dword [ebp + 8]
fstp st(0)
cmp ecx, esi
jbe 0x408341
call fcn.0049445b
push esi
push ebp
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
mov eax, ebp
call fcn.0040a940
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408379
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4c20dc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x4c]
push edx
lea ebx, [esp + 0x24]
call fcn.0040a3c0
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x4082f6
add eax, 0xfffffff0
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083e9
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, ebp
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
push 0x80070057
call fcn.004013e0
int3