Function at 0x421470
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e91f7
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x525248]
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 - 0x450], ecx
mov dword [ebp - 0x44c], 0
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jne 0x421594
lea eax, [ebp - 0x454]
push eax
call fcn.004245d0
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 - 0x450]
or ebx, 0xffffffff
mov byte [ebp - 0x441], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x421512
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x421512
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x421512
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x441], 0
je 0x42158d
lea eax, [ebp - 0x454]
push eax
call fcn.004245d0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 4], 1
call fcn.0040a090
mov esi, eax
push str.CheckParams_files_is_empty
push esi
mov byte [ebp - 4], 2
call fcn.00403fd0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
lea ecx, [ebp - 0x4f8]
call fcn.00405c30
mov esi, dword [ebp - 0x450]
test esi, esi
je 0x42158d
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x42158d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x42158d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor eax, eax
jmp 0x421a07
mov eax, dword [ecx + 0x1c]
cmp dword [eax - 0xc], 0
jne 0x42165e
lea eax, [ebp - 0x454]
push eax
call fcn.004245d0
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 - 0x450]
mov byte [ebp - 0x441], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4215fe
or ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x4215fe
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4215f8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x441]
test al, al
je 0x42158d
lea eax, [ebp - 0x454]
push eax
call fcn.004245d0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 4], 4
call fcn.0040a090
mov esi, eax
push str.CheckParams_m_strVersion_is_empty
push esi
mov byte [ebp - 4], 5
call fcn.00403fd0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
lea ecx, [ebp - 0x4f8]
call fcn.00405c30
lea ecx, [ebp - 0x454]
call fcn.00405710
xor eax, eax
jmp 0x421a07
lea eax, [ecx + 0x20]
mov dword [ebp - 0x460], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x4219a8
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0048ef80
add esp, 0xc
call fcn.00411a90
lea ecx, [ebp - 0x428]
push ecx
mov ecx, eax
call fcn.0045d250
push eax
push dword [0x524168]
mov ecx, 1
mov dword [ebp - 4], 6
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x44c], ecx
call fcn.00410790
add esp, 8
test al, al
jne 0x4216fb
call fcn.00411a90
lea ecx, [ebp - 0x440]
push ecx
mov ecx, eax
call fcn.0045d250
push eax
push dword [0x52416c]
mov dword [ebp - 0x448], 3
call fcn.00410790
add esp, 8
test al, al
jne 0x4216fb
xor bl, bl
jmp 0x4216fd
mov bl, 1
test byte [ebp - 0x448], 2
je 0x421711
lea ecx, [ebp - 0x440]
call fcn.00405560
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0xffffffff
call fcn.00405560
test bl, bl
je 0x4218d3
call fcn.00411a90
push 0
lea ecx, [ebp - 0x428]
push ecx
mov ecx, eax
call fcn.00459e60
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 7
jb 0x42174f
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44c]
call fcn.004025b0
lea ecx, [ebp - 0x428]
call fcn.00405560
lea ecx, [ebp - 0x448]
call fcn.00402660
mov esi, dword [ebp - 0x448]
mov ecx, 1
mov edi, dword [ebp - 0x44c]
mov byte [ebp - 4], 0xa
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4217ab
push 0x104
lea ecx, [ebp - 0x448]
call fcn.00403cc0
mov esi, dword [ebp - 0x448]
push edi
push 0x104
push esi
push 0x4f6708
push str.client_token
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.0049c8b2
add esp, 8
test eax, eax
js 0x421a23
cmp eax, dword [esi - 8]
jg 0x421a23
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x45c]
push eax
call fcn.004245d0
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 0xb
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 0xa
mov bl, al
call fcn.00405710
test bl, bl
je 0x421877
lea eax, [ebp - 0x45c]
push eax
call fcn.004245d0
add esp, 4
mov ebx, dword [eax]
lea ecx, [ebp - 0x4f8]
mov byte [ebp - 4], 0xc
call fcn.0040a090
mov edi, eax
push str.ProductId__entludashi__modefy_mid_to_token_
push edi
mov byte [ebp - 4], 0xd
call fcn.00410be0
push esi
push edi
call fcn.00403fd0
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x4f8]
call fcn.00405c30
lea ecx, [ebp - 0x45c]
call fcn.00405710
cmp dword [esi - 0xc], 0
je 0x421893
push esi
lea eax, [ebp - 0x210]
push 0x4f740c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
or ebx, 0xffffffff
mov byte [ebp - 4], 9
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4218b1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4218d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x45c]
push eax
call fcn.004245d0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 0xe
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
lea ecx, [ebp - 0x45c]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.00405710
test bl, bl
je 0x421973
lea eax, [ebp - 0x45c]
push eax
call fcn.004245d0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 4], 0xf
call fcn.0040a090
mov esi, eax
push str.mid_
push esi
mov byte [ebp - 4], 0x10
call fcn.00410be0
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.00403fd0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x4f8]
call fcn.00405c30
lea ecx, [ebp - 0x45c]
mov dword [ebp - 4], 0xffffffff
call fcn.00405710
lea edx, [ebp - 0x210]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x421980
mov ecx, dword [ebp - 0x460]
lea eax, [ebp - 0x210]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00403e00
mov ecx, dword [ebp - 0x450]
mov eax, dword [ecx + 0x24]
lea esi, [ecx + 0x24]
cmp dword [eax - 0xc], 0
jne 0x421a02
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0048ef80
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x100
push eax
call fcn.0044e8e0
lea edx, [ebp - 0x410]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4219e4
sub edx, ecx
lea ecx, [ebp - 0x410]
sar edx, 1
push edx
push ecx
mov ecx, esi
call fcn.00403e00
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.00455e83
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402c10
int3