Function at 0x100851a0
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x3d0]
sub esp, 0x3d0
push 0xfffffffffffffffe
push 0x1016f800
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x3cc], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x3d8]
mov eax, dword [ebp + 0x3dc]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0x3ec]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0x3f0]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp + 0x3f4]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0x3f8]
mov dword [ebp - 0x48], ecx
mov ebx, dword [ebp + 0x3fc]
mov edx, dword [ebp + 0x400]
mov dword [ebp - 0x50], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp + 0x104], 0
push 0x103
push 0
lea eax, [ebp + 0x105]
push eax
call fcn.10116880
add esp, 0xc
push 0x10195808
push 0x104
lea ecx, [ebp + 0x104]
push ecx
push 0x1013f817
push str.SecServer
push str.Config
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call edi
mov al, byte [ebp + 0x104]
cmp al, 0x31
jne 0x10085292
mov dword [0x10194cbc], 1
jmp 0x100852a0
cmp al, 0x30
jne 0x100852a0
mov dword [0x10194cbc], 0
push 0x10195808
push 0x104
lea edx, [ebp + 0x104]
push edx
push 0x1013f817
push str.DownloadFromAnotherServer
push str.Config
call edi
cmp byte [ebp + 0x104], 0x31
jne 0x100852d5
mov dword [0x101951c4], 1
xor edi, edi
cmp esi, edi
je 0x10085402
cmp byte [esi], 0
je 0x10085402
push edi
push 0x2c
push esi
lea eax, [ebp - 0x1c]
push eax
call sym.EncDec.dll_AddToCommaList_Malloc
mov esi, dword [ebp + 0x3e0]
xor edi, edi
mov dword [ebp - 0x94], edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1008533e
cmp byte [eax], 0
je 0x1008533e
push 0x1018f34c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
push 0x2c
mov edx, dword [ebp - 0x1c]
push edx
push ebx
call sym.EncDec.dll_AddToCommaList_Malloc
mov edi, eax
mov dword [ebp - 0x94], edi
push 0x1018f34c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1c]
test edi, edi
je 0x10085797
test eax, eax
je 0x10085797
cmp byte [eax], 0
je 0x10085797
push 0x2d
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.1010d780
add esp, 8
xor edi, edi
test eax, eax
je 0x10085a9e
mov byte [ebp + 0x38c], 0
push 0x3f
push edi
lea eax, [ebp + 0x38d]
push eax
call fcn.10116880
mov byte [ebp + 0x34c], 0
push 0x3f
push edi
lea ecx, [ebp + 0x34d]
push ecx
call fcn.10116880
add esp, 0x18
mov ecx, ebx
lea edx, [ebp + 0x248]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x100853a6
push 0x2d
lea edx, [ebp + 0x248]
push edx
call fcn.1010d780
add esp, 8
test eax, eax
jne 0x1008553a
cmp esi, edi
je 0x100853e9
cmp esi, 2
je 0x100853e9
cmp esi, 4
je 0x100853e9
cmp esi, 5
je 0x100853e9
push str.Invalid_Host_IP_Range__n
call fcn.1010e391
add esp, 4
cmp ebx, edi
je 0x10085ec4
push ebx
call fcn.1010dc10
add esp, 4
mov dword [ebp - 0x1c], edi
jmp 0x10085ec4
cmp byte [0x10194bb8], 0
jne 0x1008541b
push edi
push 0x10194cc0
push 0x10194bb8
call sym.EncDec.dll_GetListOfOnlyLocalIPs
cmp byte [0x10194cc0], 0
je 0x100852f5
mov dword [ebp - 0x60], edi
push 1
push 0x2c
lea ecx, [ebp - 0x60]
push ecx
mov edx, 0x101950c0
mov ecx, 0x10194cc0
call fcn.10045850
add esp, 0xc
mov esi, dword [ebp + 0x3e0]
cmp esi, edi
je 0x10085470
cmp esi, 2
je 0x10085470
cmp esi, 4
je 0x10085470
cmp esi, 5
je 0x10085470
push 0x10194cc0
push str._____LocalIPs_:__s_n
call fcn.1010e391
add esp, 8
mov dword [ebp - 0x3c], edi
push 1
push 0x2c
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp + 0x248]
mov ecx, 0x10194cc0
call fcn.10045850
mov edi, dword [ebp + 0x3e8]
add esp, 0xc
cmp dword [ebp - 0x3c], 0xffffffff
je 0x100852fb
push str.127.0.0.1
lea eax, [ebp + 0x248]
push eax
call fcn.1011c280
add esp, 8
test eax, eax
je 0x1008551d
push 0x2e
lea ecx, [ebp + 0x248]
push ecx
call fcn.1010e930
add esp, 8
mov byte [eax], 0
lea eax, [ebp + 0x248]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100854d1
mov dx, word [0x10152610]
mov word [eax], dx
mov cl, byte [0x10152612]
mov byte [eax + 2], cl
mov edx, dword [ebp - 0x50]
push edx
push ebx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x20]
push eax
push edi
mov ecx, dword [ebp + 0x3e4]
push ecx
push esi
mov edx, dword [ebp - 0x40]
push edx
lea eax, [ebp + 0x248]
push eax
call fcn.100851a0
add esp, 0x2c
push 1
push 0x2c
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp + 0x248]
mov ecx, 0x10194cc0
call fcn.10045850
jmp 0x10085491
lea eax, [ebp + 0x248]
push eax
call fcn.100454f0
lea ecx, [ebp + 0x248]
call fcn.100559b0
push edi
push 0x1013f817
push 0x101483c0
lea ecx, [ebp + 0x248]
push ecx
call fcn.10047ed0
add esp, 0x14
lea eax, [ebp + 0x248]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10085574
sub eax, edx
cmp eax, 0x1f
jbe 0x100855c2
cmp esi, edi
je 0x100855a9
cmp esi, 2
je 0x100855a9
cmp esi, 4
je 0x100855a9
cmp esi, 5
je 0x100855a9
lea edx, [ebp + 0x248]
push edx
push str.Invalid_Host_IP_Range:__s__n
call fcn.1010e391
add esp, 8
cmp ebx, edi
je 0x10085ec4
push ebx
call fcn.1010dc10
add esp, 4
mov dword [ebp - 0x1c], edi
jmp 0x10085ec4
push 0x2d
lea eax, [ebp + 0x248]
push eax
call fcn.1010d780
add esp, 8
lea edx, [eax + 1]
lea edi, [ebp + 0x34c]
lea esp, [esp]
mov cl, byte [edx]
mov byte [edi], cl
inc edx
inc edi
test cl, cl
jne 0x100855e0
mov byte [eax], cl
lea ecx, [ebp + 0x248]
lea edx, [ebp + 0x38c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x100855f8
xor edi, edi
push edi
lea ecx, [ebp + 0x38c]
push ecx
call fcn.1004dcf0
add esp, 8
test eax, eax
jne 0x10085640
cmp esi, edi
je 0x100855a9
cmp esi, 2
je 0x100855a9
cmp esi, 4
je 0x100855a9
cmp esi, 5
je 0x100855a9
lea edx, [ebp + 0x38c]
push edx
push str.Invalid_Host_IP_Start_Range:__s__n
jmp 0x100855a1
push edi
lea eax, [ebp + 0x34c]
push eax
call fcn.1004dcf0
add esp, 8
test eax, eax
jne 0x10085688
cmp esi, edi
je 0x100855a9
cmp esi, 2
je 0x100855a9
cmp esi, 4
je 0x100855a9
cmp esi, 5
je 0x100855a9
lea ecx, [ebp + 0x34c]
push ecx
push str.Invalid_Host_IP_End_Range:__s__n
jmp 0x100855a1
mov byte [ebp - 0x2c], 0
xor eax, eax
mov word [ebp - 0x2b], ax
mov byte [ebp - 0x29], al
mov byte [ebp - 0x74], al
mov word [ebp - 0x73], ax
mov byte [ebp - 0x71], al
mov byte [ebp - 0x68], al
mov word [ebp - 0x67], ax
mov byte [ebp - 0x65], al
mov byte [ebp - 0x58], al
mov word [ebp - 0x57], ax
mov byte [ebp - 0x55], al
mov byte [ebp - 0x5c], al
mov word [ebp - 0x5b], ax
mov byte [ebp - 0x59], al
mov byte [ebp - 0x64], al
mov word [ebp - 0x63], ax
mov byte [ebp - 0x61], al
mov byte [ebp - 0x6c], al
mov word [ebp - 0x6b], ax
mov byte [ebp - 0x69], al
mov byte [ebp - 0x34], al
mov word [ebp - 0x33], ax
mov byte [ebp - 0x31], al
lea edx, [ebp + 0x38c]
push edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x68]
call fcn.1004e070
lea edx, [ebp + 0x34c]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x6c]
call fcn.1004e070
lea edx, [ebp - 0x2c]
push edx
call fcn.1010dc05
mov edi, eax
lea eax, [ebp - 0x74]
push eax
call fcn.1010dc05
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.1010dc05
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x58]
push edx
call fcn.1010dc05
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.1010dc05
mov ebx, eax
mov dword [ebp - 0x60], ebx
lea ecx, [ebp - 0x64]
push ecx
call fcn.1010dc05
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x6c]
push edx
call fcn.1010dc05
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
call fcn.1010dc05
add esp, 0x38
mov dword [ebp - 0x78], eax
cmp edi, ebx
jbe 0x100857b7
test esi, esi
je 0x10085797
cmp esi, 2
je 0x10085797
cmp esi, 4
je 0x10085797
cmp esi, 5
je 0x10085797
push str.Invalid_Host_IP_Range__Start_Range_should_be_lower_than_End_Range__n
call fcn.1010e391
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10085ec4
push eax
call fcn.1010dc10
add esp, 4
mov dword [ebp - 0x1c], 0
jmp 0x10085ec4
mov ecx, dword [ebp - 0x3c]
jne 0x10085892
mov edx, dword [ebp - 0x24]
cmp ecx, edx
jbe 0x10085809
test esi, esi
je 0x100857e7
cmp esi, 2
je 0x100857e7
cmp esi, 4
je 0x100857e7
cmp esi, 5
je 0x100857e7
push str.Invalid_Host_IP_Range__Start_Range_should_be_lower_than_End_Range__n
call fcn.1010e391
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x10085ec4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1010dc10
add esp, 4
mov dword [ebp - 0x1c], 0
jmp 0x10085ec4
jne 0x10085892
mov edx, dword [ebp - 0x28]
cmp dword [ebp - 0x30], edx
jbe 0x10085859
test esi, esi
je 0x10085837
cmp esi, 2
je 0x10085837
cmp esi, 4
je 0x10085837
cmp esi, 5
je 0x10085837
push str.Invalid_Host_IP_Range__Start_Range_should_be_lower_than_End_Range__n
call fcn.1010e391
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x10085ec4
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1010dc10
add esp, 4
mov dword [ebp - 0x1c], 0
jmp 0x10085ec4
jne 0x10085892
cmp dword [ebp - 0x38], eax
jbe 0x10085892
test esi, esi
je 0x10085880
cmp esi, 2
je 0x10085880
cmp esi, 4
je 0x10085880
cmp esi, 5
je 0x10085880
push str.Invalid_Host_IP_Range__Start_Range_should_be_lower_than_End_Range__n
call fcn.1010e391
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x10085ec4
mov eax, dword [ebp - 0x1c]
jmp 0x100857a2
lea edx, [edi - 1]
cmp edx, 0xfd
ja 0x10085a55
mov edx, 0xff
cmp ecx, edx
jae 0x10085a55
cmp dword [ebp - 0x30], edx
jae 0x10085a55
cmp dword [ebp - 0x38], edx
jae 0x10085a55
dec ebx
cmp ebx, 0xfd
ja 0x10085a1c
cmp dword [ebp - 0x24], edx
jae 0x10085a1c
cmp dword [ebp - 0x28], edx
jae 0x10085a1c
cmp eax, edx
jae 0x10085a1c
mov eax, edi
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x60]
cmp eax, edx
ja 0x10085797
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], edi
je 0x10085909
mov dword [ebp - 0x20], 0xfe
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x7c], ecx
cmp ecx, dword [ebp - 0x20]
ja 0x10085a16
cmp eax, edx
jne 0x1008592b
cmp ecx, edi
jne 0x1008592b
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x84], eax
jmp 0x10085935
mov dword [ebp - 0x84], 0xfe
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x80], eax
cmp eax, dword [ebp - 0x84]
ja 0x10085a0d
cmp dword [ebp - 0x54], edx
jne 0x10085960
cmp ecx, edi
jne 0x10085960
cmp eax, dword [ebp - 0x28]
jne 0x10085960
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x88], ecx
jmp 0x1008596a
mov dword [ebp - 0x88], 0xfe
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x8c], edi
cmp edi, dword [ebp - 0x88]
ja 0x100859fb
push edi
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
push str._u._u._u._u
lea edx, [ebp + 0x208]
push edx
call fcn.1010d6a8
add esp, 0x18
cmp esi, 4
jne 0x100859c1
lea eax, [ebp + 0x208]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100859b0
sub eax, edx
add eax, 4
add dword [ebx], eax
inc edi
jmp 0x1008596d
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x4c]
push eax
push ebx
mov ecx, dword [ebp + 0x3e8]
push ecx
mov edx, dword [ebp + 0x3e4]
push edx
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp + 0x208]
push ecx
mov ecx, esi
call fcn.10084a10
add esp, 0x24
inc edi
jmp 0x1008596d
mov eax, dword [ebp - 0x80]
inc eax
mov edx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x7c]
jmp 0x10085938
inc ecx
mov eax, dword [ebp - 0x54]
jmp 0x1008590c
inc eax
jmp 0x100858ec
test esi, esi
je 0x10085a43
cmp esi, 2
je 0x10085a43
cmp esi, 4
je 0x10085a43
cmp esi, 5
je 0x10085a43
lea edx, [ebp + 0x34c]
push edx
push str.Invalid_Host_IP_End_Range___s__n
call fcn.1010e391
add esp, 8
cmp dword [ebp - 0x1c], 0
je 0x10085ec4
mov eax, dword [ebp - 0x1c]
jmp 0x100857a2
test esi, esi
je 0x10085a7c
cmp esi, 2
je 0x10085a7c
cmp esi, 4
je 0x10085a7c
cmp esi, 5
je 0x10085a7c
lea ecx, [ebp + 0x38c]
push ecx
push str.Invalid_Host_IP_Begin_Range___s__n
call fcn.1010e391
add esp, 8
cmp dword [ebp - 0x1c], 0
je 0x10085ec4
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1010dc10
add esp, 4
mov dword [ebp - 0x1c], 0
jmp 0x10085ec4
push edi
push ebx
call fcn.1004dcf0
add esp, 8
test eax, eax
jne 0x10085e55
push 0x2a
push ebx
call fcn.1010d780
add esp, 8
test eax, eax
je 0x10085e55
mov ecx, ebx
lea edx, [ebp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x10085ac8
push 0x2e
lea eax, [ebp]
push eax
call fcn.1010e930
add esp, 8
cmp eax, edi
je 0x10085e27
cmp byte [eax + 1], 0
je 0x10085e27
mov byte [ebp - 0x38], 0
xor eax, eax
mov word [ebp - 0x37], ax
mov byte [ebp - 0x35], al
mov byte [ebp - 0x28], al
mov word [ebp - 0x27], ax
mov byte [ebp - 0x25], al
mov byte [ebp - 0x24], al
mov word [ebp - 0x23], ax
mov byte [ebp - 0x21], al
mov byte [ebp - 0x30], al
mov word [ebp - 0x2f], ax
mov byte [ebp - 0x2d], al
push ebx
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x24]
call fcn.1004e070
add esp, 0xc
cmp byte [ebp - 0x38], 0x2a
je 0x10085e27
cmp byte [ebp - 0x28], 0x2a
je 0x10085e27
lea eax, [ebp - 0x38]
push eax
call fcn.1010dc05
mov edi, eax
mov dword [ebp - 0x34], edi
lea ecx, [ebp - 0x28]
push ecx
call fcn.1010dc05
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x24]
push edx
call fcn.1010dc05
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
call fcn.1010dc05
add esp, 0x10
mov ecx, eax
mov dword [ebp - 0x78], ecx
dec edi
cmp edi, 0xfd
ja 0x10085de1
cmp dword [ebp - 0x2c], 0xff
jae 0x10085de1
mov al, byte [ebp - 0x30]
cmp al, 0x2a
jne 0x10085d31
cmp byte [ebp - 0x24], al
jne 0x10085c86
xor eax, eax
mov dword [ebp - 0x70], eax
cmp eax, 0xfe
ja 0x10085797
test esi, esi
je 0x10085be5
cmp esi, 2
je 0x10085be5
cmp esi, 4
je 0x10085be5
cmp esi, 5
je 0x10085be5
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push str._Trying__u._u._u._n
call fcn.1010e391
add esp, 0x10
mov edi, 1
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x9c], edi
cmp edi, 0xfe
ja 0x10085c7b
push edi
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push str._u._u._u._u
lea eax, [ebp + 0x248]
push eax
call fcn.1010d6a8
add esp, 0x18
cmp esi, 4
jne 0x10085c41
lea eax, [ebp + 0x248]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10085c30
sub eax, edx
add eax, 4
add dword [ebx], eax
inc edi
jmp 0x10085bed
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
push ebx
mov edx, dword [ebp + 0x3e8]
push edx
mov eax, dword [ebp + 0x3e4]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp + 0x248]
push edx
mov ecx, esi
call fcn.10084a10
add esp, 0x24
inc edi
jmp 0x10085bed
inc dword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
jmp 0x10085bb1
cmp al, 0x2a
jne 0x10085d31
cmp ebx, 0xfe
ja 0x10085d31
mov edi, 1
mov dword [ebp - 0x98], edi
cmp edi, 0xfe
ja 0x10085797
push edi
push ebx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push str._u._u._u._u
lea edx, [ebp + 0x248]
push edx
call fcn.1010d6a8
add esp, 0x18
cmp esi, 4
jne 0x10085cf4
lea eax, [ebp + 0x248]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10085ce0
sub eax, edx
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x20]
add dword [eax], ecx
inc edi
jmp 0x10085c9f
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x3e8]
push ecx
mov edx, dword [ebp + 0x3e4]
push edx
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp + 0x248]
push ecx
mov ecx, esi
call fcn.10084a10
add esp, 0x24
inc edi
jmp 0x10085c9f
cmp byte [ebp - 0x24], 0x2a
jne 0x10085de1
dec ecx
cmp ecx, 0xfd
ja 0x10085de1
xor edi, edi
mov dword [ebp - 0x90], edi
cmp edi, 0xfe
ja 0x10085797
mov edx, dword [ebp - 0x78]
push edx
push edi
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push str._u._u._u._u
lea edx, [ebp + 0x248]
push edx
call fcn.1010d6a8
add esp, 0x18
cmp esi, 4
jne 0x10085da4
lea eax, [ebp + 0x248]
lea edx, [eax + 1]
jmp 0x10085d90
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10085d90
sub eax, edx
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x20]
add dword [eax], ecx
inc edi
jmp 0x10085d4a
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x3e8]
push ecx
mov edx, dword [ebp + 0x3e4]
push edx
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp + 0x248]
push ecx
mov ecx, esi
call fcn.10084a10
add esp, 0x24
inc edi
jmp 0x10085d4a
test esi, esi
je 0x10085e07
cmp esi, 2
je 0x10085e07
cmp esi, 4
je 0x10085e07
cmp esi, 5
je 0x10085e07
mov esi, dword [ebp - 0x1c]
push esi
push str.Invalid_Host_IP___s__n
call fcn.1010e391
add esp, 8
jmp 0x10085e0a
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x10085ec4
push esi
call fcn.1010dc10
add esp, 4
mov dword [ebp - 0x1c], 0
jmp 0x10085ec4
cmp esi, edi
je 0x100855a9
cmp esi, 2
je 0x100855a9
cmp esi, 4
je 0x100855a9
cmp esi, 5
je 0x100855a9
push ebx
push str.Invalid_Host_IP___s__n
jmp 0x100855a1
cmp esi, 4
jne 0x10085e76
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10085e60
sub eax, edx
lea edx, [eax + 2]
mov eax, dword [ebp - 0x20]
add dword [eax], edx
jmp 0x10085797
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0x3e8]
push edx
mov eax, dword [ebp + 0x3e4]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push ebx
mov ecx, esi
call fcn.10084a10
add esp, 0x24
jmp 0x10085797
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 + 0x3cc]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x3d0
mov esp, ebp
pop ebp
ret