Function at 0x4387f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44eb97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x640
mov ecx, dword [0x463290]
push esi
mov esi, dword [esp + 0x654]
push edi
test esi, esi
mov dword [esp + 8], ecx
je 0x43886f
mov eax, esi
shr eax, 0x10
jne 0x43883b
and esi, 0xffff
lea ecx, [esp + 8]
push esi
call fcn.004050d0
jmp 0x43886b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x43886b
push edi
lea ecx, [esp + 0xc]
call fcn.00402e70
test eax, eax
je 0x43886b
lea ecx, [edi + edi]
mov edi, dword [esp + 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
mov dword [esp + 0x650], 0
test eax, eax
je 0x438be1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebp
mov ebp, dword [esp + 0x664]
mov eax, dword [ecx - 8]
test eax, eax
jge 0x4388a0
or esi, 0xffffffff
jmp 0x4388c6
push 0x469788
push ecx
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x4388bc
mov ecx, dword [esp + 0x10]
or esi, 0xffffffff
jmp 0x4388c6
mov ecx, dword [esp + 0x10]
sub eax, ecx
sar eax, 1
mov esi, eax
mov eax, dword [0x463290]
mov dword [esp + 0x14], eax
cmp esi, 0xffffffff
mov byte [esp + 0x658], 1
jne 0x438952
cmp eax, ecx
je 0x438926
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4388f4
mov edx, dword [0x463294]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4388fb
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x43890b
mov eax, dword [ecx - 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404f60
jmp 0x438926
lea ecx, [esp + 0x14]
call fcn.00402f00
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, 0x4d6e34
test ecx, ecx
jne 0x438933
xor eax, eax
jmp 0x43893e
push 0x4d6e34
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4d6e34
push eax
lea ecx, [esp + 0x18]
call fcn.00404f60
jmp 0x438a52
lea edx, [esp + 0x1c]
push esi
push edx
lea ecx, [esp + 0x18]
call fcn.00415370
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
mov byte [esp + 0x658], 2
je 0x4389b9
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x438989
mov edx, dword [0x463294]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x438990
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4389a0
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404f60
jmp 0x4389b9
lea ecx, [esp + 0x14]
call fcn.00402f00
mov edi, dword [edi]
mov dword [esp + 0x14], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x463294]
mov byte [esp + 0x658], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4389f0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4389f0
mov edx, dword [esp + 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.0044737a
add esp, 4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00415200
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x65c], 3
call fcn.00402fa0
mov eax, dword [esp + 0x18]
mov ecx, dword [0x463294]
mov byte [esp + 0x658], 1
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x438a52
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x438a52
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.0044737a
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00438c20
lea ecx, [esp + 0x14]
mov byte [esp + 0x658], 4
push ecx
lea ecx, [esp + 0x24]
call fcn.00402fa0
lea edx, [esp + 0x14]
lea ecx, [esp + 0x24]
push edx
call fcn.00402fa0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3a]
mov word [esp + 0x38], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
stosw word es:[edi], ax
mov eax, dword [ebp]
push eax
lea eax, [esp + 0x3c]
push 0x104
push eax
push 0x4d6e34
push str.rname
push ecx
call ebx
test eax, eax
jbe 0x438ade
lea edx, [esp + 0x38]
test edx, edx
jne 0x438ac4
xor eax, eax
jmp 0x438acf
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x38]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.00404f60
mov eax, dword [ebp]
mov edx, dword [esp + 0x14]
xor esi, esi
push eax
push esi
push str.seUpdateFlag
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esp + 0x28], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x242]
mov word [esp + 0x240], si
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
stosw word es:[edi], ax
mov eax, dword [ebp]
push eax
lea eax, [esp + 0x244]
push 0x104
push eax
push 0x4d6e34
push str.seGroup
push ecx
call ebx
test eax, eax
jbe 0x438b4a
lea edx, [esp + 0x240]
lea ecx, [esp + 0x30]
push edx
call fcn.00403090
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x44a]
mov word [esp + 0x448], si
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
stosw word es:[edi], ax
mov eax, dword [ebp]
push eax
lea eax, [esp + 0x44c]
push 0x104
push eax
push 0x4d6e34
push str.seCmd
push ecx
call ebx
test eax, eax
jbe 0x438b9b
lea edx, [esp + 0x448]
lea ecx, [esp + 0x34]
push edx
call fcn.00403090
mov ecx, dword [esp + 0x668]
lea edx, [esp + 0x20]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.0043aa70
lea ecx, [esp + 0x20]
mov byte [esp + 0x658], 1
call fcn.00438c60
lea ecx, [esp + 0x14]
mov byte [esp + 0x658], 0
call fcn.0043c2e0
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], esi
jne 0x438894
pop ebp
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x650], 0xffffffff
call fcn.0043c2e0
mov ecx, dword [esp + 0x648]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x64c
ret 0xc