Function at 0x406060
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20c
lea eax, [esp + 0xb8]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00403cd0
add esp, 4
mov edx, 7
mov ecx, 0xb
xor eax, eax
mov edi, 0x42b740
dec edx
rep stosd dword es:[edi], eax
jne 0x40607f
mov cx, word [0x41f06c]
lea edi, [esp + 0xc8]
mov word [esp + 0x1c], cx
or ecx, 0xffffffff
mov dl, byte [0x41f06e]
repne scasb al, byte es:[edi]
not ecx
mov byte [esp + 0x1e], dl
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ocsipocs_ip.dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405960
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x228]
mov edx, ecx
mov esi, edi
mov edi, 0x42e180
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp ebp, 0xbb8
rep movsb byte es:[edi], byte [esi]
jne 0x40614b
mov bx, 0x32d2
mov word [0x42e0c4], bx
jmp 0x4061ad
cmp ebp, 0xc1c
jne 0x406163
mov bx, word [0x42b292]
mov word [0x42e0c4], bx
jmp 0x4061ad
cmp ebp, 0x74
jne 0x40633c
mov ax, word [0x42afea]
xor ecx, ecx
mov cx, ax
lea edx, [esp + 0xf0]
push ecx
push str.Java_port___i
push edx
mov word [0x42e0c4], ax
call fcn.0041408f
lea eax, [esp + 0xfc]
push 0x42a728
push eax
push ebp
call fcn.004032b0
add esp, 0x18
mov bx, word [0x42e0c4]
xor esi, esi
mov edx, 0x42b76a
mov ecx, 0xb
xor eax, eax
lea edi, [edx - 0x2a]
add edx, 0x2c
rep stosd dword es:[edi], eax
lea eax, [esi + esi*4]
lea ecx, [eax + eax*4]
shl ecx, 2
add cx, bx
inc esi
mov word [edx - 0x2c], cx
cmp edx, 0x42b872
jle 0x4061b4
xor edx, edx
xor eax, eax
mov dx, word [0x42b76a]
mov ax, bx
push edx
push eax
lea ecx, [esp + 0x24]
push str.app_port___i____i
push ecx
call fcn.0041408f
lea edx, [esp + 0x2c]
push str.Normal
push edx
push ebp
call fcn.004032b0
mov ax, word [0x41f06c]
mov cl, byte [0x41f06e]
mov word [esp + 0x38], ax
mov byte [esp + 0x3a], cl
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
mov dword [0x42ac60], eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.ocsipocs_ip_multiple.dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x42aad4]
mov ecx, ebx
and ecx, 3
cmp eax, 3
rep movsb byte es:[edi], byte [esi]
jne 0x4062bb
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x154]
push eax
push str.Checking_multiple__s
push ecx
call fcn.0041408f
lea edx, [esp + 0x160]
push str.Normal
push edx
push ebp
call fcn.004032b0
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
call fcn.00403f60
add esp, 4
test eax, eax
jne 0x4063ea
lea ecx, [esp + 0x1c]
push str.INITIALIZE_PORTS___ONLY_ONE_NIC_CARD
push ecx
call fcn.0041408f
lea edx, [esp + 0x24]
push str.Normal
push edx
push ebp
call fcn.004032b0
mov edi, 0x42e180
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x234]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x42b74c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x238]
push ecx
push edx
call fcn.004065b0
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
cmp ebp, 0x57
jne 0x406351
mov bx, 0x32ca
mov word [0x42e0c4], bx
jmp 0x4061ad
cmp ebp, 0xf
jne 0x406369
mov bx, word [0x42df68]
mov word [0x42e0c4], bx
jmp 0x4061ad
cmp ebp, 0x4a
jne 0x406381
mov bx, word [0x42df64]
mov word [0x42e0c4], bx
jmp 0x4061ad
cmp ebp, 0x49
jne 0x406399
mov bx, word [0x42df66]
mov word [0x42e0c4], bx
jmp 0x4061ad
cmp ebp, 0x10
jne 0x4063b1
mov bx, word [0x42b294]
mov word [0x42e0c4], bx
jmp 0x4061ad
cmp ebp, 0xc
je 0x4063d7
cmp ebp, 0x6f
je 0x4063d7
cmp ebp, 9
jne 0x4061a6
mov bx, word [0x42afe8]
mov word [0x42e0c4], bx
jmp 0x4061ad
mov bx, word [0x42ba98]
mov word [0x42e0c4], bx
jmp 0x4061ad
lea eax, [esp + 0x1c]
push eax
call fcn.004040a0
add esp, 4
lea ecx, [esp + 0x18]
lea edx, [esp + 0xa0]
mov ebx, eax
push 0
push ecx
push 0x26
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0xa0]
lea eax, [esp + 0x1c]
push esi
push str.INITIALIZE_PORTS___we_have___i__NIC_Cards
push eax
xor ebp, ebp
call fcn.0041408f
mov edx, dword [esp + 0x234]
lea ecx, [esp + 0x28]
push str.Normal
push ecx
push edx
call fcn.004032b0
add esp, 0x18
cmp esi, 1
jl 0x406556
mov dword [esp + 0x10], 0x42b74c
mov dword [esp + 0x14], esi
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0xa8]
push 0x26
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0xa4]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, eax
mov ecx, eax
and edx, 0xff
mov dword [esp + 0xa4], eax
push edx
xor edx, edx
mov dl, ah
and edx, 0xff
shr ecx, 0x10
push edx
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
and edx, 0xff
push eax
push edx
lea eax, [esp + 0x90]
push str._d._d._d._d
push eax
call fcn.0041408f
lea ecx, [esp + 0x98]
push str.0.0.0.0
push ecx
call fcn.0041c250
add esp, 0x20
test eax, eax
je 0x406547
lea edi, [esp + 0x80]
or ecx, 0xffffffff
xor eax, eax
mov dword [0x42ac60], ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x80]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
push str._s_thread.cpp__Preparing_Thread___i__data__for_nic_ip___s
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
call fcn.0041408f
mov eax, dword [esp + 0x238]
lea edx, [esp + 0x2c]
push 0x42a728
push edx
push eax
call fcn.004032b0
mov eax, dword [esp + 0x2c]
add esp, 0x1c
inc ebp
add eax, 0x2c
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x406459
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
lea ecx, [esp + 0x20]
push str._s_thread.cpp__INITIALIZE_PORTS__calling_s_startup__threads__i
push ecx
call fcn.0041408f
mov eax, dword [esp + 0x234]
lea edx, [esp + 0x28]
push 0x42a728
push edx
push eax
call fcn.004032b0
mov ecx, dword [esp + 0x23c]
mov edx, dword [esp + 0x238]
push ecx
push edx
call fcn.004065b0
add esp, 0x20
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret