Function at 0x1000e040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push esi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x1006401c
push 1
push 0x10064034
push 1
push str.ksnetcomm.cat
push 0x100720a0
call fcn.100122f0
add esp, 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0x10064048
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 8]
push eax
call fcn.100486a2
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x1000e0b6
mov eax, 0xffffff35
jmp 0x1000e92f
mov ecx, dword [ebp - 8]
push ecx
push 0xe
push 1
lea edx, [ebp - 0x60]
push edx
call fcn.100489a0
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
push 0x28
push 1
lea ecx, [ebp - 0x48]
push ecx
call fcn.100489a0
add esp, 0x10
push 0
mov edx, dword [ebp - 0x56]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10048c2b
add esp, 0xc
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.10048416
add esp, 4
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.10048416
add esp, 4
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.10048416
add esp, 4
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x8c], eax
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov dword [edx], ecx
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
xor edx, edx
mov eax, dword [ebp - 0x8c]
mov dword [eax], edx
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
mov eax, dword [ebp - 0x14]
push eax
call fcn.100489a0
add esp, 0x10
mov dword [ebp - 0xc], 0
jmp 0x1000e184
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x34]
jae 0x1000e1ac
mov eax, dword [ebp - 0x34]
sub eax, 1
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + eax]
xor edx, 0xff
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov byte [eax], dl
jmp 0x1000e17b
mov ecx, dword [ebp - 8]
push ecx
call fcn.10048d27
add esp, 4
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x44]
and edx, 0x8000001f
jns 0x1000e1cf
dec edx
or edx, 0xffffffe0
inc edx
test edx, edx
je 0x1000e1f9
mov eax, dword [ebp - 0x44]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
shl eax, 5
add eax, 0x20
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x6c], eax
jmp 0x1000e208
mov eax, dword [ebp - 0x44]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x18], 0
jmp 0x1000e21a
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x40]
jge 0x1000e27d
mov dword [ebp - 0x90], 0
jmp 0x1000e23d
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x6c]
jge 0x1000e27b
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x6c]
sub edx, 1
sub edx, dword [ebp - 0x90]
add ecx, edx
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x20]
mov cl, byte [esi + ecx]
mov byte [edx + eax], cl
jmp 0x1000e22e
jmp 0x1000e211
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x65], 0
mov edx, dword [ebp - 0x44]
and edx, 0x8000001f
jns 0x1000e2b7
dec edx
or edx, 0xffffffe0
inc edx
test edx, edx
je 0x1000e509
mov eax, dword [ebp - 0x44]
and eax, 0x8000001f
jns 0x1000e2ce
dec eax
or eax, 0xffffffe0
inc eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x7c]
and ecx, 0x80000007
jns 0x1000e2f0
dec ecx
or ecx, 0xfffffff8
inc ecx
test ecx, ecx
je 0x1000e49b
mov edx, dword [ebp - 0x7c]
and edx, 0x80000007
jns 0x1000e308
dec edx
or edx, 0xfffffff8
inc edx
mov dword [ebp - 0x88], edx
mov eax, 4
sub eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x18], 0
jmp 0x1000e32b
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x40]
jge 0x1000e37f
mov dword [ebp - 0x90], 0
jmp 0x1000e34e
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
sub ecx, 1
cmp dword [ebp - 0x90], ecx
jge 0x1000e37d
mov edx, dword [ebp - 0x18]
add edx, 1
imul edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x90]
add eax, 1
sub edx, eax
mov ecx, dword [ebp - 0x8c]
mov byte [ecx + edx], 0
jmp 0x1000e33f
jmp 0x1000e322
mov edx, 8
sub edx, dword [ebp - 0x88]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x18], 0
jmp 0x1000e39f
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x40]
jge 0x1000e413
mov byte [ebp - 0x65], 1
mov dword [ebp - 0x90], 0
jmp 0x1000e3c6
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x50]
add eax, 1
cmp dword [ebp - 0x90], eax
jge 0x1000e411
mov ecx, dword [ebp - 0x18]
add ecx, 1
imul ecx, dword [ebp - 0x6c]
sub ecx, dword [ebp - 0x74]
movzx edx, byte [ebp - 0x65]
mov eax, dword [ebp - 0x8c]
movzx ecx, byte [eax + ecx]
or ecx, edx
mov edx, dword [ebp - 0x18]
add edx, 1
imul edx, dword [ebp - 0x6c]
sub edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x8c]
mov byte [eax + edx], cl
mov cl, byte [ebp - 0x65]
shl cl, 1
mov byte [ebp - 0x65], cl
jmp 0x1000e3b7
jmp 0x1000e396
mov dword [ebp - 0x18], 0
jmp 0x1000e425
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x40]
jge 0x1000e499
mov byte [ebp - 0x65], 1
mov dword [ebp - 0x90], 0
jmp 0x1000e44c
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x50]
add edx, 1
cmp dword [ebp - 0x90], edx
jge 0x1000e497
mov eax, dword [ebp - 0x18]
add eax, 1
imul eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x74]
movzx ecx, byte [ebp - 0x65]
mov edx, dword [ebp - 0x8c]
movzx eax, byte [edx + eax]
xor eax, ecx
mov ecx, dword [ebp - 0x18]
add ecx, 1
imul ecx, dword [ebp - 0x6c]
sub ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x8c]
mov byte [edx + ecx], al
mov al, byte [ebp - 0x65]
shl al, 1
mov byte [ebp - 0x65], al
jmp 0x1000e43d
jmp 0x1000e41c
jmp 0x1000e509
mov ecx, 4
sub ecx, dword [ebp - 0x78]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x18], 0
jmp 0x1000e4b8
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x40]
jge 0x1000e509
mov dword [ebp - 0x90], 0
jmp 0x1000e4db
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
cmp edx, dword [ebp - 0x74]
jge 0x1000e507
mov eax, dword [ebp - 0x18]
add eax, 1
imul eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x90]
add ecx, 1
sub eax, ecx
mov edx, dword [ebp - 0x8c]
mov byte [edx + eax], 0
jmp 0x1000e4cc
jmp 0x1000e4af
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 4]
imul edx, dword [ebp - 0x4c]
push edx
call fcn.10048416
add esp, 4
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x70], eax
xor ecx, ecx
mov edx, dword [ebp - 0x70]
mov dword [edx], ecx
mov dword [ebp - 0x18], 0
jmp 0x1000e550
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x40]
jge 0x1000e5ae
mov dword [ebp - 0x90], 0
jmp 0x1000e573
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x6c]
jge 0x1000e5ac
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x6c]
add ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x18]
imul edx, dword [ebp - 4]
mov eax, dword [ebp - 0x90]
add eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x70]
mov esi, dword [ebp - 0x8c]
mov cl, byte [esi + ecx]
mov byte [eax + edx], cl
jmp 0x1000e564
jmp 0x1000e547
mov dword [ebp - 0x18], 0
jmp 0x1000e5c0
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x4c]
jge 0x1000e606
mov dword [ebp - 0x90], 0
jmp 0x1000e5e3
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
cmp edx, dword [ebp + 0xc]
jge 0x1000e604
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 4]
add eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x70]
mov byte [ecx + eax], 0
jmp 0x1000e5d4
jmp 0x1000e5b7
mov edx, dword [ebp - 4]
imul edx, dword [ebp - 0x4c]
add edx, 8
push edx
call fcn.10048416
add esp, 4
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x80], eax
xor ecx, ecx
mov edx, dword [ebp - 0x80]
mov dword [edx], ecx
movzx eax, word [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x64], ax
movzx ecx, word [ebp - 0x4c]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x84], ax
mov edx, dword [ebp - 0x80]
mov byte [edx], 0x1d
mov eax, dword [ebp - 0x80]
mov byte [eax + 1], 0x76
mov ecx, dword [ebp - 0x80]
mov byte [ecx + 2], 0x30
cmp dword [ebp + 0x10], 0
jle 0x1000e673
mov edx, dword [ebp - 0x80]
mov byte [edx + 3], 0x33
jmp 0x1000e67a
mov eax, dword [ebp - 0x80]
mov byte [eax + 3], 0
mov ecx, dword [ebp - 0x80]
mov dx, word [ebp - 0x64]
mov word [ecx + 4], dx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x80]
mov dl, byte [ecx + 4]
mov byte [eax + 9], dl
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x80]
mov dl, byte [ecx + 5]
mov byte [eax + 4], dl
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x80]
mov dl, byte [ecx + 9]
mov byte [eax + 5], dl
mov eax, dword [ebp - 0x80]
mov cx, word [ebp - 0x84]
mov word [eax + 6], cx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x80]
mov cl, byte [eax + 6]
mov byte [edx + 8], cl
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x80]
mov cl, byte [eax + 7]
mov byte [edx + 6], cl
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x80]
mov cl, byte [eax + 8]
mov byte [edx + 7], cl
mov edx, dword [ebp - 4]
imul edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x80]
add ecx, 8
push ecx
call fcn.1004ec60
add esp, 0xc
push 8
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [0x100894bc]
push eax
call fcn.1002c530
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000e7a3
mov ecx, dword [ebp - 0x10]
push ecx
push 0x1006404c
push 1
push 0x10064060
push 1
push str.ksnetcomm.cat
push 0x100720a0
call fcn.100122f0
add esp, 0x1c
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa8]
push eax
call fcn.100486f5
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
push edx
call fcn.100486f5
add esp, 4
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
push ecx
call fcn.100486f5
add esp, 4
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
push eax
call fcn.100486f5
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x1000e92f
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x80]
add edx, 8
push edx
mov eax, dword [0x100894bc]
push eax
call fcn.1002c530
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb8]
push edx
call fcn.100486f5
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.100486f5
add esp, 4
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0xc0]
push eax
call fcn.100486f5
add esp, 4
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0xc4]
push edx
call fcn.100486f5
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x1000e8b9
mov eax, dword [ebp - 0x10]
push eax
push 0x10064074
push 1
push 0x10064088
push 1
push str.ksnetcomm.cat
push 0x100720a0
call fcn.100122f0
add esp, 0x1c
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xc8]
push edx
call fcn.100486f5
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.100486f5
add esp, 4
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0xd0]
push eax
call fcn.100486f5
add esp, 4
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp - 0xd4]
push edx
call fcn.100486f5
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x1000e92f
push 1
push 0xa
mov eax, dword [0x100894bc]
push eax
call fcn.1002c530
mov dword [ebp - 0x10], eax
push 3
call sym.ksnetcomm.dll_CATAsyncPrintLineFeed
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x1c], 0
xor ecx, ecx
mov word [ebp - 0x1b], cx
mov byte [ebp - 0x1c], 0x1b
mov byte [ebp - 0x1b], 0x61
mov byte [ebp - 0x1a], 0
push 3
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [0x100894bc]
push eax
call fcn.1002c530
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov word [ebp - 0x1c], cx
mov byte [ebp - 0x1a], cl
mov edx, dword [ebp - 0x10]
push edx
push 0x1006409c
push 1
push 0x100640a8
push 1
push str.ksnetcomm.cat
push 0x100720a0
call fcn.100122f0
add esp, 0x1c
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret 0xc