Function at 0x4036e0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x549cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a5084]
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 0x403725
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 3
jne 0x40390c
mov edx, dword [0x5b06b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5b06b0
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x40], ebx
call fcn.00402c30
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 0x403776
mov ecx, 0x104
lea eax, [esp + 0x44]
call fcn.004088f0
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 edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4037b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
jne 0x4037be
xor eax, eax
jmp 0x4037d8
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4037c3
sub eax, edx
sar eax, 1
js 0x403924
cmp eax, dword [edi - 8]
jg 0x403924
push 0x58b6c4
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.00403930
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x4038c7
push eax
call dword [sym.imp.MSVCR80.dll__wtof]
fst qword [esp + 0x20]
mov ecx, dword [ebp + 4]
add esp, 4
test ecx, ecx
jne 0x403830
xor edx, edx
jmp 0x403838
mov edx, dword [ebp + 8]
sub edx, ecx
sar edx, 3
test ecx, ecx
je 0x403855
mov eax, dword [ebp + 0xc]
sub eax, ecx
sar eax, 3
cmp edx, eax
jae 0x403855
mov eax, dword [ebp + 8]
fstp qword [eax]
add eax, 8
mov dword [ebp + 8], eax
jmp 0x403877
mov esi, dword [ebp + 8]
fstp st(0)
cmp ecx, esi
jbe 0x403864
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
push ebp
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
mov eax, ebp
call fcn.00403e50
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 0x40389c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x58b6c4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x4c]
push edx
lea ebx, [esp + 0x24]
call fcn.00403930
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x403817
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 0x4038e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40390c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00408b10
int3