Function at 0x528e10
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x310]
sub esp, 0x310
push 0xfffffffffffffffe
push 0x673b28
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x30c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0x318]
mov eax, dword [ebp + 0x31c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x32c]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp + 0x330]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x334]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0x338]
mov dword [ebp - 0x2c], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp], bl
push 0x103
push ebx
lea edx, [ebp + 1]
push edx
call fcn.005dfd60
add esp, 0xc
push 0x7520c0
push 0x104
lea eax, [ebp]
push eax
push 0x60c81c
push str.SecServer
push 0x60da74
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call esi
mov al, byte [ebp]
cmp al, 0x31
jne 0x528edc
mov dword [0x751b7c], 1
jmp 0x528ee6
cmp al, 0x30
jne 0x528ee6
mov dword [0x751b7c], ebx
push 0x7520c0
push 0x104
lea ecx, [ebp]
push ecx
push 0x60c81c
push str.DownloadFromAnotherServer
push 0x60da74
call esi
cmp byte [ebp], 0x31
jne 0x528f15
mov dword [0x751b80], 1
cmp edi, ebx
je 0x528f30
cmp byte [edi], 0
je 0x528f30
push ebx
push 0x2c
push edi
lea edx, [ebp - 0x1c]
push edx
call fcn.004e5820
jmp 0x529063
cmp byte [0x751570], 0
jne 0x528f49
push ebx
push 0x751678
push 0x751570
call fcn.0050dc50
cmp byte [0x751678], 0
je 0x529063
mov dword [ebp - 0x4c], ebx
push 1
push ebx
push 0x2c
lea eax, [ebp - 0x4c]
push eax
push 0x751a78
push 0x751678
call fcn.004e1380
add esp, 0x18
mov esi, dword [ebp + 0x320]
cmp esi, ebx
je 0x528f90
push 0x751678
push str._____LocalIPs_:__s_n
call fcn.005e0e7f
add esp, 8
mov dword [ebp - 0x34], 0
push 1
push 0
push 0x2c
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp + 0x208]
push edx
push 0x751678
call fcn.004e1380
mov edi, dword [ebp + 0x328]
mov ebx, dword [ebp + 0x324]
add esp, 0x18
cmp dword [ebp - 0x34], 0xffffffff
je 0x529061
push str.127.0.0.1
lea eax, [ebp + 0x208]
push eax
call fcn.005f095a
add esp, 8
test eax, eax
je 0x529041
push 0x2e
lea ecx, [ebp + 0x208]
push ecx
call fcn.005e0a00
add esp, 8
mov byte [eax], 0
lea eax, [ebp + 0x208]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x529000
mov dx, word [0x64e120]
mov word [eax], dx
mov cl, byte [0x64e122]
mov byte [eax + 2], cl
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push edi
push ebx
push esi
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp + 0x208]
push ecx
call fcn.00528e10
add esp, 0x24
push 1
push 0
push 0x2c
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp + 0x208]
push eax
push 0x751678
call fcn.004e1380
jmp 0x528fbe
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x50], esi
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x5290a4
cmp byte [eax], 0
je 0x5290a4
push 0x7510e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
push 0x2c
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x751c9c
call fcn.004e5820
mov esi, eax
mov dword [ebp - 0x50], esi
push 0x7510e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1c]
cmp esi, ebx
je 0x529374
test eax, eax
je 0x52942e
cmp byte [eax], 0
je 0x529374
xor esi, esi
push esi
push eax
call fcn.00508760
add esp, 8
test eax, eax
jne 0x5293dc
push 0x2a
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005e0940
add esp, 8
test eax, eax
je 0x5293dc
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp + 0x208]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x5290f0
push 0x2e
lea eax, [ebp + 0x208]
push eax
call fcn.005e0a00
add esp, 8
cmp eax, esi
je 0x5293ce
cmp byte [eax + 1], 0
je 0x5293ce
mov byte [ebp - 0x28], 0
xor eax, eax
mov word [ebp - 0x27], ax
mov byte [ebp - 0x25], al
mov byte [ebp - 0x44], al
mov word [ebp - 0x43], ax
mov byte [ebp - 0x41], al
mov byte [ebp - 0x20], al
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x38], al
mov word [ebp - 0x37], ax
mov byte [ebp - 0x35], al
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.004d9250
add esp, 0x14
cmp byte [ebp - 0x28], 0x2a
je 0x5293a0
cmp byte [ebp - 0x44], 0x2a
je 0x5293a0
lea eax, [ebp - 0x28]
push eax
call fcn.005e0909
mov esi, eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.005e0909
mov edi, eax
lea edx, [ebp - 0x20]
push edx
call fcn.005e0909
mov ebx, eax
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x38]
push eax
call fcn.005e0909
add esp, 0x10
mov dword [ebp - 0x34], eax
lea ecx, [esi - 1]
cmp ecx, 0xfd
ja 0x529391
lea edx, [edi - 1]
cmp edx, 0xfd
ja 0x529391
mov cl, byte [ebp - 0x38]
cmp cl, 0x2a
jne 0x5292e9
cmp byte [ebp - 0x20], cl
jne 0x529275
xor eax, eax
mov dword [ebp - 0x48], eax
cmp eax, 0xfe
jg 0x529371
cmp dword [ebp + 0x320], 0
je 0x529207
push eax
push edi
push esi
push str._Trying__u._u._u._n
call fcn.005e0e7f
add esp, 0x10
mov ebx, 1
mov dword [ebp - 0x54], ebx
cmp ebx, 0xfe
jg 0x52926a
push ebx
mov eax, dword [ebp - 0x48]
push eax
push edi
push esi
push 0x64aab0
lea ecx, [ebp + 0x104]
push ecx
call fcn.005dfb23
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp + 0x328]
push eax
mov ecx, dword [ebp + 0x324]
push ecx
mov edx, dword [ebp + 0x320]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp + 0x104]
push ecx
call fcn.00528cb0
add esp, 0x3c
inc ebx
jmp 0x52920c
inc dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
jmp 0x5291e3
cmp cl, 0x2a
jne 0x5292e9
cmp ebx, 0xfe
ja 0x5292e9
mov ebx, 1
mov dword [ebp - 0x5c], ebx
cmp ebx, 0xfe
jg 0x529371
push ebx
mov edx, dword [ebp - 0x4c]
push edx
push edi
push esi
push 0x64aab0
lea eax, [ebp + 0x104]
push eax
call fcn.005dfb23
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 0x328]
push edx
mov eax, dword [ebp + 0x324]
push eax
mov ecx, dword [ebp + 0x320]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp + 0x104]
push eax
call fcn.00528cb0
add esp, 0x3c
inc ebx
jmp 0x529287
cmp byte [ebp - 0x20], 0x2a
jne 0x529357
dec eax
cmp eax, 0xfd
ja 0x529357
xor ebx, ebx
mov dword [ebp - 0x58], ebx
cmp ebx, 0xfe
jg 0x529371
mov ecx, dword [ebp - 0x34]
push ecx
push ebx
push edi
push esi
push 0x64aab0
lea edx, [ebp + 0x104]
push edx
call fcn.005dfb23
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 0x328]
push ecx
mov edx, dword [ebp + 0x324]
push edx
mov eax, dword [ebp + 0x320]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp + 0x104]
push edx
call fcn.00528cb0
add esp, 0x3c
inc ebx
jmp 0x5292f9
cmp dword [ebp + 0x320], 0
je 0x529371
mov eax, dword [ebp - 0x1c]
push eax
push str.Invalid_Host_IP___s__n
call fcn.005e0e7f
add esp, 8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x52942e
push eax
call fcn.005e0865
add esp, 4
mov dword [ebp - 0x1c], 0
jmp 0x52942e
cmp dword [ebp + 0x320], 0
je 0x529371
mov ecx, dword [ebp - 0x1c]
push ecx
jmp 0x529364
cmp dword [ebp + 0x320], esi
je 0x5293b9
mov edx, dword [ebp - 0x1c]
push edx
push str.Invalid_Host_IP___s__n
call fcn.005e0e7f
add esp, 8
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x52942e
push eax
call fcn.005e0865
add esp, 4
mov dword [ebp - 0x1c], esi
jmp 0x52942e
cmp dword [ebp + 0x320], esi
je 0x5293b9
mov eax, dword [ebp - 0x1c]
push eax
jmp 0x5293ac
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 0x328]
push edx
mov eax, dword [ebp + 0x324]
push eax
mov ecx, dword [ebp + 0x320]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00528cb0
add esp, 0x24
jmp 0x529371
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x30c]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x310
mov esp, ebp
pop ebp
ret