Function at 0x5765e0d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5766254b
push eax
mov eax, 0x24b4
mov dword fs:[0], esp
call fcn.576616a0
mov dl, byte [0x576876ec]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2bd]
mov byte [esp + 0x2bc], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x576894a4
stosb byte es:[edi], al
lea eax, [esp + 0x2c0]
push 0x104
push eax
push 0x576876ec
push str.SERIAL
push str.Setup
mov ebx, 1
call esi
push 0x576894a4
lea ecx, [esp + 0x14]
push 0x104
push ecx
push 0x576876ec
push str.SERVER
push str.Setup
call esi
mov al, byte [esp + 0x2bc]
test al, al
je 0x5765e3e9
mov al, byte [esp + 0x10]
test al, al
je 0x5765e3e9
lea ecx, [esp + 0x114]
call fcn.57660bc0
xor edi, edi
lea ecx, [esp + 0x114]
mov dword [esp + 0x24cc], edi
call fcn.57660c00
lea edx, [esp + 0x10]
push 0x1538
push edx
lea ecx, [esp + 0x11c]
call fcn.57660c90
mov esi, dword [esp + 0x24d4]
test eax, eax
jle 0x5765e226
mov eax, dword [esp + 0x24e4]
mov ecx, dword [esp + 0x24e0]
mov edx, dword [esp + 0x24dc]
push eax
mov eax, dword [esp + 0x24dc]
push ecx
push edx
push eax
lea ecx, [esp + 0x2cc]
push esi
lea edx, [esp + 0x128]
push ecx
push edx
mov ecx, ebp
call fcn.5765e600
test eax, eax
jne 0x5765e217
push str.GetCertifyFromServerW_:_GetDownloadCertifyW_failed
jmp 0x5765e22b
push str.GetCertifyFromServerW_:_GetDownloadCertifyW_success
call fcn.57653a20
add esp, 4
jmp 0x5765e235
push str.GetCertifyFromServerW_:_Connect_fail....
call fcn.57653a20
add esp, 4
xor ebx, ebx
lea ecx, [esp + 0x114]
call fcn.57660c80
cmp ebx, edi
je 0x5765e3ce
mov eax, dword [ebp + 4]
cmp eax, edi
je 0x5765e25b
push eax
mov ecx, ebp
call fcn.5765e5c0
mov dword [ebp + 4], edi
cmp dword [0x57687884], edi
jbe 0x5765e3ce
lea ecx, [esp + 0x114]
call fcn.57660c00
lea eax, [esp + 0x10]
push 0x1538
push eax
lea ecx, [esp + 0x11c]
call fcn.57660c90
test eax, eax
jle 0x5765e3c2
mov dl, byte [0x576876ec]
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x14c5]
mov byte [esp + 0x14c4], dl
mov byte [esp + 0x3c0], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3c1]
mov byte [esp + 0x4c4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x4c5]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x4c8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c4]
push ecx
push esi
call fcn.57661030
lea edi, [esp + 0x3cc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x3c0]
inc ecx
push edx
push ecx
lea eax, [esp + 0x4cc]
push str.RL_04dSA_s
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
lea ecx, [esp + 0x4c4]
push ecx
lea ecx, [esp + 0x118]
call fcn.57660db0
test eax, eax
jl 0x5765e3c2
lea edx, [esp + 0x4c4]
push 0x1000
push edx
lea ecx, [esp + 0x11c]
call fcn.57660f80
test eax, eax
je 0x5765e3c2
push 2
lea eax, [esp + 0x4c8]
push 0x57686bc8
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x5765e3c2
lea edi, [esp + 0x4c6]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14c4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14c4]
push ecx
mov ecx, ebp
call fcn.5765e420
lea ecx, [esp + 0x114]
call fcn.57660c80
lea ecx, [esp + 0x114]
mov dword [esp + 0x24cc], 0xffffffff
call fcn.57660bf0
mov eax, ebx
jmp 0x5765e405
lea edx, [esp + 0x10]
lea eax, [esp + 0x2bc]
push edx
push eax
push str.GetCertifyFromServerW_fails:_strSN__s__strAddr__s
call fcn.57653a20
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x24c4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24c0
ret 0x14