Function at 0x420890
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9382
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x525258]
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 0x4209b4
lea eax, [ebp - 0x258]
push eax
call fcn.004239f0
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 0x420932
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x420932
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x420932
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x241], 0
je 0x4209ad
lea eax, [ebp - 0x258]
push eax
call fcn.004239f0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 4], 1
call fcn.0040dcb0
mov esi, eax
push str.CheckParams_files_is_empty
push esi
mov byte [ebp - 4], 2
call fcn.00404140
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
lea ecx, [ebp - 0x2fc]
call fcn.00405da0
mov esi, dword [ebp - 0x254]
test esi, esi
je 0x4209ad
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4209ad
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4209ad
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor eax, eax
jmp 0x420e29
mov eax, dword [ecx + 0x1c]
cmp dword [eax - 0xc], 0
jne 0x420a7e
lea eax, [ebp - 0x258]
push eax
call fcn.004239f0
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 0x420a1e
or ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x420a1e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x420a18
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x241]
test al, al
je 0x4209ad
lea eax, [ebp - 0x258]
push eax
call fcn.004239f0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 4], 4
call fcn.0040dcb0
mov esi, eax
push str.CheckParams_m_strVersion_is_empty
push esi
mov byte [ebp - 4], 5
call fcn.00404140
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
lea ecx, [ebp - 0x2fc]
call fcn.00405da0
lea ecx, [ebp - 0x258]
call fcn.00405880
xor eax, eax
jmp 0x420e29
lea eax, [ecx + 0x20]
mov dword [ebp - 0x254], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x420dca
lea eax, [ebp - 0x24c]
push eax
call fcn.0041ef10
add esp, 4
mov dword [ebp - 4], 6
call fcn.0040f2b0
lea ecx, [ebp - 0x228]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push dword [0x524160]
mov ecx, 1
mov byte [ebp - 4], 7
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x250], ecx
call fcn.0040d080
add esp, 8
test al, al
jne 0x420b18
call fcn.0040f2b0
lea ecx, [ebp - 0x240]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push dword [0x524164]
mov dword [ebp - 0x248], 3
call fcn.0040d080
add esp, 8
test al, al
jne 0x420b18
xor bl, bl
jmp 0x420b1a
mov bl, 1
test byte [ebp - 0x248], 2
je 0x420b2e
lea ecx, [ebp - 0x240]
call fcn.004056d0
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 6
call fcn.004056d0
or edi, 0xffffffff
test bl, bl
je 0x420cef
call fcn.0040f2b0
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 0x420b6c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x250]
call fcn.00402730
lea ecx, [ebp - 0x228]
call fcn.004056d0
lea ecx, [ebp - 0x248]
call fcn.004027e0
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 0x420bc8
push 0x104
lea ecx, [ebp - 0x248]
call fcn.00403e30
mov esi, dword [ebp - 0x248]
push ebx
push 0x104
push esi
push 0x4f6718
push str.client_token
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.0049ea52
add esp, 8
test eax, eax
js 0x420e45
cmp eax, dword [esi - 8]
jg 0x420e45
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x260]
push eax
call fcn.004239f0
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.00405880
test bl, bl
je 0x420c9b
lea eax, [ebp - 0x260]
push eax
call fcn.004239f0
add esp, 4
mov ebx, dword [eax]
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 0xd
call fcn.0040dcb0
mov edi, eax
push str.ProductId__entludashi__modefy_mid_to_token_
push edi
mov byte [ebp - 4], 0xe
call fcn.0040e270
push esi
push edi
call fcn.00404140
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x2fc]
call fcn.00405da0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xb
call fcn.00405880
or edi, 0xffffffff
cmp dword [esi - 0xc], 0
je 0x420cb3
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00405be0
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x420cce
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 0x420cef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x260]
push eax
call fcn.004239f0
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.00405880
test bl, bl
je 0x420d90
lea eax, [ebp - 0x260]
push eax
call fcn.004239f0
add esp, 4
mov ebx, dword [eax]
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 0x10
call fcn.0040dcb0
mov edi, eax
push str.mid_
push edi
mov byte [ebp - 4], 0x11
call fcn.0040e270
mov edx, dword [ebp - 0x24c]
mov esi, 0x4f6970
test edx, edx
cmovne esi, edx
push esi
push edi
call fcn.00404140
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x2fc]
call fcn.00405da0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 6
call fcn.00405880
or edi, 0xffffffff
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x24c]
push eax
call fcn.00405be0
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 0x420dc4
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 0x420e24
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00491120
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.0044dc60
lea edx, [ebp - 0x210]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x420e06
sub edx, ecx
lea ecx, [ebp - 0x210]
sar edx, 1
push edx
push ecx
mov ecx, esi
call fcn.00403f70
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.004564ea
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402d90
int3