Function at 0x1000e950
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 str._IN_Path___s__xCnt___d_
push 1
push 0x100640d4
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 0x100640f0
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 0x1000e9c6
mov eax, 0xffffff35
jmp 0x1000f248
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 0x1000ea94
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x34]
jae 0x1000eabc
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 0x1000ea8b
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 0x1000eadf
dec edx
or edx, 0xffffffe0
inc edx
test edx, edx
je 0x1000eb09
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 0x1000eb18
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 0x1000eb2a
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x40]
jge 0x1000eb8d
mov dword [ebp - 0x90], 0
jmp 0x1000eb4d
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x6c]
jge 0x1000eb8b
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 0x1000eb3e
jmp 0x1000eb21
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 0x1000ebc7
dec edx
or edx, 0xffffffe0
inc edx
test edx, edx
je 0x1000ee19
mov eax, dword [ebp - 0x44]
and eax, 0x8000001f
jns 0x1000ebde
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 0x1000ec00
dec ecx
or ecx, 0xfffffff8
inc ecx
test ecx, ecx
je 0x1000edab
mov edx, dword [ebp - 0x7c]
and edx, 0x80000007
jns 0x1000ec18
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 0x1000ec3b
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x40]
jge 0x1000ec8f
mov dword [ebp - 0x90], 0
jmp 0x1000ec5e
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 0x1000ec8d
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 0x1000ec4f
jmp 0x1000ec32
mov edx, 8
sub edx, dword [ebp - 0x88]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x18], 0
jmp 0x1000ecaf
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x40]
jge 0x1000ed23
mov byte [ebp - 0x65], 1
mov dword [ebp - 0x90], 0
jmp 0x1000ecd6
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 0x1000ed21
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 0x1000ecc7
jmp 0x1000eca6
mov dword [ebp - 0x18], 0
jmp 0x1000ed35
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x40]
jge 0x1000eda9
mov byte [ebp - 0x65], 1
mov dword [ebp - 0x90], 0
jmp 0x1000ed5c
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 0x1000eda7
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 0x1000ed4d
jmp 0x1000ed2c
jmp 0x1000ee19
mov ecx, 4
sub ecx, dword [ebp - 0x78]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x18], 0
jmp 0x1000edc8
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x40]
jge 0x1000ee19
mov dword [ebp - 0x90], 0
jmp 0x1000edeb
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
cmp edx, dword [ebp - 0x74]
jge 0x1000ee17
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 0x1000eddc
jmp 0x1000edbf
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 0x1000ee60
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x40]
jge 0x1000eebe
mov dword [ebp - 0x90], 0
jmp 0x1000ee83
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x6c]
jge 0x1000eebc
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 0x1000ee74
jmp 0x1000ee57
mov dword [ebp - 0x18], 0
jmp 0x1000eed0
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x4c]
jge 0x1000ef16
mov dword [ebp - 0x90], 0
jmp 0x1000eef3
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
cmp edx, dword [ebp + 0xc]
jge 0x1000ef14
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 0x1000eee4
jmp 0x1000eec7
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 0x1000ef83
mov edx, dword [ebp - 0x80]
mov byte [edx + 3], 0x33
jmp 0x1000ef8a
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 0x1000f0b3
mov ecx, dword [ebp - 0x10]
push ecx
push 0x100640f4
push 1
push 0x10064108
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 0x1000f248
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 0x1000f1c9
mov eax, dword [ebp - 0x10]
push eax
push str._OUT_Error___ld_
push 1
push 0x10064138
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 0x1000f248
push 1
push 0xa
mov eax, dword [0x100894bc]
push eax
call fcn.1002c530
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x14], 0
jle 0x1000f1ed
mov ecx, dword [ebp + 0x14]
push ecx
call sym.ksnetcomm.dll_CATAsyncPrintLineFeed
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x1c], 0
xor edx, edx
mov word [ebp - 0x1b], dx
mov byte [ebp - 0x1c], 0x1b
mov byte [ebp - 0x1b], 0x61
mov byte [ebp - 0x1a], 0
push 3
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [0x100894bc]
push ecx
call fcn.1002c530
mov dword [ebp - 0x10], eax
xor edx, edx
mov word [ebp - 0x1c], dx
mov byte [ebp - 0x1a], dl
mov eax, dword [ebp - 0x10]
push eax
push 0x10064154
push 1
push 0x10064160
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 0x10