Function at 0x416f50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4832
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x4cb134]
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 - 0x264], ecx
mov dword [ebp - 0x250], 0
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jne 0x417074
lea eax, [ebp - 0x258]
push eax
call fcn.0041a1c0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x254]
or ebx, 0xffffffff
mov byte [ebp - 0x241], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x416ff2
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x416ff2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x416ff2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x241], 0
je 0x41706d
lea eax, [ebp - 0x258]
push eax
call fcn.0041a1c0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 4], 1
call fcn.0040b3f0
mov esi, eax
push str.CheckParams_files_is_empty
push esi
mov byte [ebp - 4], 2
call fcn.00401790
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
lea ecx, [ebp - 0x2fc]
call fcn.00403470
mov esi, dword [ebp - 0x254]
test esi, esi
je 0x41706d
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x41706d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x41706d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor eax, eax
jmp 0x4174e9
mov eax, dword [ecx + 0x1c]
cmp dword [eax - 0xc], 0
jne 0x41713e
lea eax, [ebp - 0x258]
push eax
call fcn.0041a1c0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 3
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x254]
mov byte [ebp - 0x241], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4170de
or ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x4170de
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4170d8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x241]
test al, al
je 0x41706d
lea eax, [ebp - 0x258]
push eax
call fcn.0041a1c0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 4], 4
call fcn.0040b3f0
mov esi, eax
push str.CheckParams_m_strVersion_is_empty
push esi
mov byte [ebp - 4], 5
call fcn.00401790
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
lea ecx, [ebp - 0x2fc]
call fcn.00403470
lea ecx, [ebp - 0x258]
call fcn.00402f20
xor eax, eax
jmp 0x4174e9
lea eax, [ecx + 0x20]
mov dword [ebp - 0x254], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x41748a
lea eax, [ebp - 0x24c]
push eax
call fcn.004152f0
add esp, 4
mov dword [ebp - 4], 6
call fcn.0040c910
lea ecx, [ebp - 0x228]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push dword [0x4cb0b8]
mov ecx, 1
mov byte [ebp - 4], 7
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x250], ecx
call fcn.0040a790
add esp, 8
test al, al
jne 0x4171d8
call fcn.0040c910
lea ecx, [ebp - 0x240]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push dword [0x4cb0bc]
mov dword [ebp - 0x248], 3
call fcn.0040a790
add esp, 8
test al, al
jne 0x4171d8
xor bl, bl
jmp 0x4171da
mov bl, 1
test byte [ebp - 0x248], 2
je 0x4171ee
lea ecx, [ebp - 0x240]
call fcn.00402d70
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 6
call fcn.00402d70
or edi, 0xffffffff
test bl, bl
je 0x4173af
call fcn.0040c910
push 0
lea ecx, [ebp - 0x228]
push ecx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x34]
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 8
jb 0x41722c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x250]
call fcn.004074c0
lea ecx, [ebp - 0x228]
call fcn.00402d70
lea ecx, [ebp - 0x248]
call fcn.0040abe0
mov esi, dword [ebp - 0x248]
mov ecx, 1
mov ebx, dword [ebp - 0x250]
mov byte [ebp - 4], 0xb
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x417288
push 0x104
lea ecx, [ebp - 0x248]
call fcn.004051c0
mov esi, dword [ebp - 0x248]
push ebx
push 0x104
push esi
push 0x4aa3d4
push str.client_token
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.0047b0af
add esp, 8
test eax, eax
js 0x417505
cmp eax, dword [esi - 8]
jg 0x417505
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x260]
push eax
call fcn.0041a1c0
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 0xc
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xb
mov bl, al
call fcn.00402f20
test bl, bl
je 0x41735b
lea eax, [ebp - 0x260]
push eax
call fcn.0041a1c0
add esp, 4
mov ebx, dword [eax]
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 0xd
call fcn.0040b3f0
mov edi, eax
push str.ProductId__entludashi__modefy_mid_to_token_
push edi
mov byte [ebp - 4], 0xe
call fcn.0040b9b0
push esi
push edi
call fcn.00401790
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x2fc]
call fcn.00403470
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xb
call fcn.00402f20
or edi, 0xffffffff
cmp dword [esi - 0xc], 0
je 0x417373
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x24c]
call fcn.004032b0
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41738e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x250]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4173af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x260]
push eax
call fcn.0041a1c0
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 0xf
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 6
mov bl, al
call fcn.00402f20
test bl, bl
je 0x417450
lea eax, [ebp - 0x260]
push eax
call fcn.0041a1c0
add esp, 4
mov ebx, dword [eax]
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 0x10
call fcn.0040b3f0
mov edi, eax
push str.mid_
push edi
mov byte [ebp - 4], 0x11
call fcn.0040b9b0
mov edx, dword [ebp - 0x24c]
mov esi, 0x4aa660
test edx, edx
cmovne esi, edx
push esi
push edi
call fcn.00401790
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x2fc]
call fcn.00403470
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 6
call fcn.00402f20
or edi, 0xffffffff
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x24c]
push eax
call fcn.004032b0
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x417484
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x264]
mov eax, dword [ecx + 0x24]
lea esi, [ecx + 0x24]
cmp dword [eax - 0xc], 0
jne 0x4174e4
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0044ecd0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.004379a0
lea edx, [ebp - 0x210]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4174c6
sub edx, ecx
lea ecx, [ebp - 0x210]
sar edx, 1
push edx
push ecx
mov ecx, esi
call fcn.00405510
mov eax, 1
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.004403da
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403c50
int3