Function at 0x484b10
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x58c647
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x458]
mov eax, dword [esp + 0x45c]
mov esi, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x34], eax
xor ebx, ebx
mov dword [esp + 0x434], ebx
mov ecx, dword [0x5ef5f4]
test ecx, ecx
jne 0x484b7f
call fcn.00404b70
mov ecx, dword [0x5ef5f4]
push 0x1a
lea edx, [esp + 0x138]
push edx
call fcn.0047a8d0
mov byte [esp + 0x434], 1
mov eax, dword [esp + 0x138]
mov edi, 8
cmp dword [esp + 0x14c], edi
jae 0x484bb8
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x484d5e
push 0x206
lea ecx, [esp + 0x222]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x228], ax
call fcn.0052e300
mov eax, dword [esp + 0x144]
add esp, 0xc
cmp dword [esp + 0x14c], edi
jae 0x484bfe
lea eax, [esp + 0x138]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x104
lea edx, [esp + 0x224]
push edx
push 0x59b2fc
push 0x5ae328
push str.CpID
call edi
lea eax, [esp + 0x21c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x484c30
sub eax, edx
sar eax, 1
je 0x484c6d
lea eax, [esp + 0x21c]
lea edx, [eax + 2]
jmp 0x484c50
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x484c50
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x220]
push eax
call fcn.00406150
mov eax, dword [esp + 0x138]
mov esi, 8
cmp dword [esp + 0x14c], esi
jae 0x484c89
lea eax, [esp + 0x138]
push eax
push 0x104
lea ecx, [esp + 0x224]
push ecx
push 0x59b2fc
push str.Alid
push str.CpID
call edi
lea eax, [esp + 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x484cb2
sub eax, edx
sar eax, 1
je 0x484cf4
lea eax, [esp + 0x21c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x484cd0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x220]
push edx
mov esi, ebp
call fcn.00406150
mov esi, 8
mov eax, dword [0x5ef5f4]
test eax, eax
jne 0x484d02
call fcn.00404b70
push str.CompanyID_Cache
call fcn.0047b0e0
add esp, 4
cmp dword [esp + 0x14c], esi
jb 0x484d28
mov ecx, dword [esp + 0x138]
push ecx
call fcn.005273b8
add esp, 4
xor edx, edx
mov dword [esp + 0x14c], 7
mov dword [esp + 0x148], ebx
mov word [esp + 0x138], dx
cmp dword [esp + 0x454], esi
jb 0x485204
mov eax, dword [esp + 0x440]
push eax
jmp 0x4851fc
mov ecx, dword [0x5ef5f4]
test ecx, ecx
jne 0x484d6d
call fcn.00404b70
mov ecx, dword [0x5ef5f4]
push 0x5ae328
push str.CpID
lea edx, [esp + 0x40]
call fcn.0047c7f0
push 0xffffffffffffffff
push ebx
push eax
mov eax, esi
mov byte [esp + 0x440], 2
call fcn.00405d70
mov byte [esp + 0x434], 1
cmp dword [esp + 0x50], edi
jb 0x484db4
mov edx, dword [esp + 0x3c]
push edx
call fcn.005273b8
add esp, 4
mov ecx, dword [0x5ef5f4]
xor eax, eax
mov edi, 7
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
test ecx, ecx
jne 0x484dd7
call fcn.00404b70
mov ecx, dword [0x5ef5f4]
push str.Alid
push str.CpID
lea edx, [esp + 0x78]
call fcn.0047c7f0
push 0xffffffffffffffff
push ebx
push eax
mov eax, ebp
mov byte [esp + 0x440], 3
call fcn.00405d70
mov byte [esp + 0x434], 1
cmp dword [esp + 0x88], 8
jb 0x484e22
mov edx, dword [esp + 0x74]
push edx
call fcn.005273b8
add esp, 4
cmp dword [esi + 0x14], ebx
ja 0x4851b8
cmp dword [ebp + 0x14], ebx
ja 0x4851b8
mov eax, dword [0x5ef5f4]
test eax, eax
jne 0x484e42
call fcn.00404b70
push str.CompanyID_Server
call fcn.0047b0e0
add esp, 4
mov dword [esp + 0x168], 0xf
mov dword [esp + 0x164], ebx
mov byte [esp + 0x154], 0
lea esi, [esp + 0x16c]
call fcn.004a0b20
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x440]
mov byte [esp + 0x438], 5
call fcn.004924e0
mov ebp, 0x10
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x484ea3
mov eax, dword [eax + 4]
jmp 0x484ea6
add eax, 4
lea edx, [esp + 0x150]
push edx
push eax
lea eax, [esp + 0x174]
push eax
call fcn.004a0bf0
cmp dword [esp + 0xa4], ebp
jb 0x484ed5
mov ecx, dword [esp + 0x90]
push ecx
call fcn.005273b8
add esp, 4
mov eax, dword [esp + 0x154]
cmp dword [esp + 0x168], ebp
jae 0x484eec
lea eax, [esp + 0x154]
push eax
call fcn.00492110
add esp, 4
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x190]
push eax
mov byte [esp + 0x1c], 1
mov byte [esp + 0x1d], 0
call fcn.004a26e0
and dword [esp + 0x24], 0xfffffe00
mov dword [esp + 0x28], ebx
push esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x438], 8
call fcn.004057a0
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x58]
lea edi, [esp + 0x190]
mov byte [esp + 0x438], 9
call fcn.004a27a0
mov byte [esp + 0x434], 8
mov bl, al
cmp dword [esp + 0x6c], ebp
jb 0x484f6b
mov edx, dword [esp + 0x58]
push edx
call fcn.005273b8
add esp, 4
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x154]
call fcn.004923c0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov eax, dword [esp + 0x40]
mov byte [esp + 0x440], 0xa
call fcn.00405d70
lea ecx, [esp + 0x118]
mov byte [esp + 0x434], 8
call fcn.00406300
test bl, bl
jne 0x485004
lea eax, [esp + 0x1c]
mov byte [esp + 0x434], 6
call fcn.004a6000
lea edi, [esp + 0x18c]
call fcn.0047f4e0
lea esi, [esp + 0x16c]
call fcn.004a0b50
lea ecx, [esp + 0x150]
call fcn.004062d0
lea ecx, [esp + 0x134]
call fcn.00406300
lea ecx, [esp + 0x43c]
call fcn.00406300
xor eax, eax
jmp 0x485209
cmp byte [esp + 0x24], 0
je 0x484fb0
push str.cpid
lea ecx, [esp + 0x20]
push ecx
call fcn.004a6850
cmp byte [eax + 8], 0
je 0x4850ba
push str.cpid
lea edx, [esp + 0x20]
push edx
call fcn.004a6850
lea esi, [esp + 0xa8]
mov ecx, eax
call fcn.004a6160
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x438], 0xb
call fcn.00490630
add esp, 4
mov esi, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
push eax
mov eax, esi
mov byte [esp + 0x440], 0xc
call fcn.00405d70
lea ecx, [esp + 0xe0]
call fcn.00406300
lea ecx, [esp + 0xa8]
mov byte [esp + 0x434], 8
call fcn.004062d0
cmp dword [esi + 0x18], 8
jb 0x48509c
mov eax, dword [esi + 4]
jmp 0x48509f
lea eax, [esi + 4]
push eax
push 0x5ae328
push str.CpID
push ecx
call fcn.00404980
add esp, 4
mov ecx, eax
call fcn.0047c6b0
push str.alid
lea eax, [esp + 0x20]
push eax
call fcn.004a6850
cmp byte [eax + 8], 0
je 0x485169
push str.alid
lea ecx, [esp + 0x20]
push ecx
call fcn.004a6850
lea esi, [esp + 0xfc]
mov ecx, eax
call fcn.004a6160
push eax
lea ecx, [esp + 0xc8]
mov byte [esp + 0x438], 0xd
call fcn.00490630
add esp, 4
mov esi, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
push eax
mov eax, esi
mov byte [esp + 0x440], 0xe
call fcn.00405d70
lea ecx, [esp + 0xc4]
call fcn.00406300
lea ecx, [esp + 0xfc]
mov byte [esp + 0x434], 8
call fcn.004062d0
cmp dword [esi + 0x18], 8
jb 0x48514b
mov eax, dword [esi + 4]
jmp 0x48514e
lea eax, [esi + 4]
push eax
push str.Alid
push str.CpID
push ecx
call fcn.00404980
add esp, 4
mov ecx, eax
call fcn.0047c6b0
lea eax, [esp + 0x1c]
mov byte [esp + 0x434], 6
call fcn.004a6000
lea edi, [esp + 0x18c]
call fcn.0047f4e0
lea esi, [esp + 0x16c]
call fcn.004a0b50
lea ecx, [esp + 0x150]
call fcn.004062d0
lea ecx, [esp + 0x134]
call fcn.00406300
lea ecx, [esp + 0x43c]
call fcn.00406300
jmp 0x485204
cmp dword [esp + 0x14c], 8
jb 0x4851d2
mov edx, dword [esp + 0x138]
push edx
call fcn.005273b8
add esp, 4
xor eax, eax
cmp dword [esp + 0x454], 8
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov word [esp + 0x138], ax
jb 0x485204
mov ecx, dword [esp + 0x440]
push ecx
call fcn.005273b8
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.005273c3
add esp, 0x424
ret 0x24