Function at 0x466800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x595c60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xd4], 0
je 0x46690a
cmp dword [edi], 0x53464348
jne 0x46690a
test eax, eax
jne 0x46691e
cmp dword [edi + 0x4158], 3
jl 0x46690a
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x46690a
push str.invalid_connection_data
call fcn.0040feb0
or ecx, 0xffffffff
add esp, 4
cmp ecx, str.ts_csnetipc_networkfunction_send
mov esi, eax
jne 0x4668ad
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea edx, [ebp - 0xcc]
push 0xc8
push edx
call fcn.00410530
add esp, 0x10
lea eax, [ebp - 0xcc]
jmp 0x4668e4
mov eax, 0xfffffffe
cmp eax, str.ts_csnetipc_networkfunction_send
jne 0x4668df
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea ecx, [ebp - 0xcc]
push 0xc8
push ecx
call fcn.00410530
add esp, 0x10
lea eax, [ebp - 0xcc]
jmp 0x4668e4
mov eax, str.ts_csnetipc_networkfunction_send
push esi
push 0x3c2
push str.D:BUILD_478059BUILDTS_SDKTS_SDK_SRC_source_ts_ts_csnetipc.c
push eax
push 0x1000
push 3
push edi
call fcn.0040fee0
push 0x59ed80
call fcn.00410c00
add esp, 0x20
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
cmp dword [eax + 4], 2
mov ecx, 3
je 0x4669e5
or ebx, 0xffffffff
cmp dword [edi + 0x4158], ecx
jl 0x46759a
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x4674a6
push str.connection_is_in_invalid_state
call fcn.0040feb0
or edx, ebx
add esp, 4
cmp edx, str.ts_csnetipc_networkfunction_send
mov esi, eax
jne 0x466999
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea eax, [ebp - 0xcc]
push 0xc8
push eax
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x3c6
jmp 0x467486
mov ecx, 0xfffffffe
cmp ecx, str.ts_csnetipc_networkfunction_send
jne 0x4669d5
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea edx, [ebp - 0xcc]
push 0xc8
push edx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x3c6
jmp 0x467486
push esi
mov eax, str.ts_csnetipc_networkfunction_send
push 0x3c6
jmp 0x467486
cmp dword [eax], 0xffffffff
jne 0x466aa5
or ebx, 0xffffffff
cmp dword [edi + 0x4158], ecx
jl 0x46759a
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x4674a6
push str.connection_is_not_established
call fcn.0040feb0
mov esi, eax
or eax, ebx
add esp, 4
cmp eax, str.ts_csnetipc_networkfunction_send
jne 0x466a59
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea ecx, [ebp - 0xcc]
push 0xc8
push ecx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x3ca
jmp 0x467486
mov edx, 0xfffffffe
cmp edx, str.ts_csnetipc_networkfunction_send
jne 0x466a95
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea eax, [ebp - 0xcc]
push 0xc8
push eax
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x3ca
jmp 0x467486
push esi
mov eax, str.ts_csnetipc_networkfunction_send
push 0x3ca
jmp 0x467486
mov esi, eax
call fcn.00465360
cmp eax, 1
je 0x466b79
or ebx, 0xffffffff
cmp dword [edi], 0x53464348
jne 0x4674a6
cmp dword [edi + 0x4158], 3
jl 0x4674a6
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x4674a6
push str.a_pending_write_operation_failed
call fcn.0040feb0
or ecx, ebx
add esp, 4
cmp ecx, str.ts_csnetipc_networkfunction_send
mov esi, eax
jne 0x466b2e
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea edx, [ebp - 0xcc]
push 0xc8
push edx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x3d8
jmp 0x467486
mov eax, 0xfffffffe
cmp eax, str.ts_csnetipc_networkfunction_send
jne 0x466b69
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea ecx, [ebp - 0xcc]
push 0xc8
push ecx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x3d8
jmp 0x467486
push esi
mov eax, str.ts_csnetipc_networkfunction_send
push 0x3d8
jmp 0x467486
mov edx, esi
cmp dword [edx + 0x810], 0
je 0x466c5d
cmp dword [edi], 0x53464348
jne 0x466c53
cmp dword [edi + 0x4158], 0xf
jl 0x466c53
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x466c53
push str.a_write_is_pending
call fcn.0040feb0
mov esi, eax
or eax, 0xffffffff
add esp, 4
cmp eax, str.ts_csnetipc_networkfunction_send
jne 0x466bf5
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea ecx, [ebp - 0xcc]
push 0xc8
push ecx
call fcn.00410530
add esp, 0x10
lea eax, [ebp - 0xcc]
jmp 0x466c2d
mov edx, 0xfffffffe
cmp edx, str.ts_csnetipc_networkfunction_send
jne 0x466c28
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea eax, [ebp - 0xcc]
push 0xc8
push eax
call fcn.00410530
add esp, 0x10
lea eax, [ebp - 0xcc]
jmp 0x466c2d
mov eax, str.ts_csnetipc_networkfunction_send
push esi
push 0x3dd
push str.D:BUILD_478059BUILDTS_SDKTS_SDK_SRC_source_ts_ts_csnetipc.c
push eax
push 0x1000
push 0xf
push edi
call fcn.0040fee0
push 0x59ed80
call fcn.00410c00
add esp, 0x20
mov ebx, 0xfffffffe
jmp 0x4674a6
lea ecx, [ebp - 0xd4]
push ecx
call fcn.00443710
add esp, 4
test eax, eax
jne 0x466d39
or ebx, 0xffffffff
cmp dword [edi], 0x53464348
jne 0x4674a6
cmp dword [edi + 0x4158], 3
jl 0x4674a6
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x4674a6
push str.buffer_creation_failed
call fcn.0040feb0
or edx, ebx
add esp, 4
cmp edx, str.ts_csnetipc_networkfunction_send
mov esi, eax
jne 0x466ced
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea eax, [ebp - 0xcc]
push 0xc8
push eax
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x3e4
jmp 0x467486
mov ecx, 0xfffffffe
cmp ecx, str.ts_csnetipc_networkfunction_send
jne 0x466d29
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea edx, [ebp - 0xcc]
push 0xc8
push edx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x3e4
jmp 0x467486
push esi
mov eax, str.ts_csnetipc_networkfunction_send
push 0x3e4
jmp 0x467486
push 0
lea eax, [ebp - 0xe8]
push 6
push eax
call fcn.00463aa0
add esp, 0xc
test eax, eax
jne 0x466e18
or ebx, 0xffffffff
cmp dword [edi], 0x53464348
jne 0x4674a6
cmp dword [edi + 0x4158], 3
jl 0x4674a6
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x4674a6
push str.packet_init_failed
call fcn.0040feb0
or ecx, ebx
add esp, 4
cmp ecx, str.ts_csnetipc_networkfunction_send
mov esi, eax
jne 0x466dcd
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea edx, [ebp - 0xcc]
push 0xc8
push edx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x3ef
jmp 0x467486
mov eax, 0xfffffffe
cmp eax, str.ts_csnetipc_networkfunction_send
jne 0x466e08
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea ecx, [ebp - 0xcc]
push 0xc8
push ecx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x3ef
jmp 0x467486
push esi
mov eax, str.ts_csnetipc_networkfunction_send
push 0x3ef
jmp 0x467486
mov eax, dword [ebp - 0xd8]
test eax, eax
mov edx, dword [ebp + 0x10]
mov byte [ebp - 0xde], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xe8], edx
mov esi, eax
jne 0x466e46
or ebx, 0xffffffff
jmp 0x4673c4
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 4]
push ecx
push ebx
push edx
call fcn.00456990
add esp, 0xc
cmp eax, 1
je 0x466f32
or ebx, 0xffffffff
cmp dword [edi], 0x53464348
jne 0x4673c4
cmp dword [edi + 0x4158], 3
jl 0x4673c4
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x4673c4
push str.cannot_set_rpl_packet_data
call fcn.0040feb0
mov esi, eax
or eax, ebx
add esp, 4
cmp eax, str.ts_csnetipc_networkfunction_send
jne 0x466ecf
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea ecx, [ebp - 0xcc]
push 0xc8
push ecx
call fcn.00410530
add esp, 0x10
lea eax, [ebp - 0xcc]
jmp 0x466f07
mov edx, 0xfffffffe
cmp edx, str.ts_csnetipc_networkfunction_send
jne 0x466f02
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea eax, [ebp - 0xcc]
push 0xc8
push eax
call fcn.00410530
add esp, 0x10
lea eax, [ebp - 0xcc]
jmp 0x466f07
mov eax, str.ts_csnetipc_networkfunction_send
push esi
push 0x419
push str.D:BUILD_478059BUILDTS_SDKTS_SDK_SRC_source_ts_ts_csnetipc.c
push eax
push 0x1000
push 3
push edi
call fcn.0040fee0
push 0x59ed80
call fcn.00410c00
add esp, 0x20
jmp 0x4673c4
mov ecx, dword [edi + 0x1004fc]
mov dword [esi], ecx
mov edx, dword [edi + 0x100500]
mov dword [esi + 8], edx
mov eax, dword [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xe8]
push ecx
call fcn.00463f80
add esp, 8
test eax, eax
jne 0x467026
or ebx, 0xffffffff
cmp dword [edi], 0x53464348
jne 0x4673c4
cmp dword [edi + 0x4158], 3
jl 0x4673c4
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x4673c4
push str.raw_packet_creation_failed
call fcn.0040feb0
or edx, ebx
add esp, 4
cmp edx, str.ts_csnetipc_networkfunction_send
mov esi, eax
jne 0x466fda
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea eax, [ebp - 0xcc]
push 0xc8
push eax
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x424
jmp 0x466f0d
mov ecx, 0xfffffffe
cmp ecx, str.ts_csnetipc_networkfunction_send
jne 0x467016
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea edx, [ebp - 0xcc]
push 0xc8
push edx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x424
jmp 0x466f0d
push esi
mov eax, str.ts_csnetipc_networkfunction_send
push 0x424
jmp 0x466f0d
mov eax, dword [ebp - 0xd4]
push eax
call fcn.004437d0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x467103
or ebx, 0xffffffff
cmp dword [edi], 0x53464348
jne 0x4673c4
cmp dword [edi + 0x4158], 3
jl 0x4673c4
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x4673c4
push str.cannot_get_data_address_from_buffer
call fcn.0040feb0
or ecx, ebx
add esp, 4
cmp ecx, str.ts_csnetipc_networkfunction_send
mov esi, eax
jne 0x4670b8
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea edx, [ebp - 0xcc]
push 0xc8
push edx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x429
jmp 0x466f0d
mov eax, 0xfffffffe
cmp eax, str.ts_csnetipc_networkfunction_send
jne 0x4670f3
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea ecx, [ebp - 0xcc]
push 0xc8
push ecx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x429
jmp 0x466f0d
push esi
mov eax, str.ts_csnetipc_networkfunction_send
push 0x429
jmp 0x466f0d
mov edx, dword [ebp - 0xd4]
push edx
call fcn.004437f0
mov esi, eax
add esp, 4
test esi, esi
jge 0x4671e0
or ebx, 0xffffffff
cmp dword [edi], 0x53464348
jne 0x4673c4
cmp dword [edi + 0x4158], 3
jl 0x4673c4
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x4673c4
push str.cannot_determine_buffer_size
call fcn.0040feb0
mov esi, eax
or eax, ebx
add esp, 4
cmp eax, str.ts_csnetipc_networkfunction_send
jne 0x467194
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea ecx, [ebp - 0xcc]
push 0xc8
push ecx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x42e
jmp 0x466f0d
mov edx, 0xfffffffe
cmp edx, str.ts_csnetipc_networkfunction_send
jne 0x4671d0
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea eax, [ebp - 0xcc]
push 0xc8
push eax
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x42e
jmp 0x466f0d
push esi
mov eax, str.ts_csnetipc_networkfunction_send
push 0x42e
jmp 0x466f0d
push 0
push esi
push ebx
call fcn.00460f50
add esp, 0xc
test eax, eax
jne 0x4672b8
or ebx, 0xffffffff
cmp dword [edi], 0x53464348
jne 0x4673c4
cmp dword [edi + 0x4158], 3
jl 0x4673c4
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x4673c4
push str.cannot_encode_buffer
call fcn.0040feb0
or ecx, ebx
add esp, 4
cmp ecx, str.ts_csnetipc_networkfunction_send
mov esi, eax
jne 0x46726d
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea edx, [ebp - 0xcc]
push 0xc8
push edx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x43a
jmp 0x466f0d
mov eax, 0xfffffffe
cmp eax, str.ts_csnetipc_networkfunction_send
jne 0x4672a8
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea ecx, [ebp - 0xcc]
push 0xc8
push ecx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x43a
jmp 0x466f0d
push esi
mov eax, str.ts_csnetipc_networkfunction_send
push 0x43a
jmp 0x466f0d
mov eax, dword [ebp - 0xd0]
lea edx, [eax + 0x814]
mov eax, dword [eax]
push edx
push 0
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4673bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4673af
or ebx, 0xffffffff
cmp dword [edi], 0x53464348
jne 0x4673c4
cmp dword [edi + 0x4158], 3
jl 0x4673c4
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x4673c4
push str.packet_send_failed
call fcn.0040feb0
or ecx, ebx
add esp, 4
cmp ecx, str.ts_csnetipc_networkfunction_send
mov esi, eax
jne 0x467364
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea edx, [ebp - 0xcc]
push 0xc8
push edx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x44c
jmp 0x466f0d
mov eax, 0xfffffffe
cmp eax, str.ts_csnetipc_networkfunction_send
jne 0x46739f
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea ecx, [ebp - 0xcc]
push 0xc8
push ecx
call fcn.00410530
add esp, 0x10
push esi
lea eax, [ebp - 0xcc]
push 0x44c
jmp 0x466f0d
push esi
mov eax, str.ts_csnetipc_networkfunction_send
push 0x44c
jmp 0x466f0d
mov edx, dword [ebp - 0xd0]
mov dword [edx + 0x810], 1
mov ebx, 1
lea eax, [ebp - 0xe8]
push eax
call fcn.00463930
add esp, 4
test eax, eax
jne 0x4674a6
cmp dword [edi], 0x53464348
jne 0x4674a6
cmp dword [edi + 0x4158], 3
jl 0x4674a6
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x4674a6
push str.packet_uninit_failed
call fcn.0040feb0
or ecx, 0xffffffff
add esp, 4
cmp ecx, str.ts_csnetipc_networkfunction_send
mov esi, eax
jne 0x467449
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea edx, [ebp - 0xcc]
push 0xc8
push edx
call fcn.00410530
add esp, 0x10
lea eax, [ebp - 0xcc]
jmp 0x467480
mov eax, 0xfffffffe
cmp eax, str.ts_csnetipc_networkfunction_send
jne 0x46747b
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea ecx, [ebp - 0xcc]
push 0xc8
push ecx
call fcn.00410530
add esp, 0x10
lea eax, [ebp - 0xcc]
jmp 0x467480
mov eax, str.ts_csnetipc_networkfunction_send
push esi
push 0x48e
push str.D:BUILD_478059BUILDTS_SDKTS_SDK_SRC_source_ts_ts_csnetipc.c
push eax
push 0x1000
push 3
push edi
call fcn.0040fee0
push 0x59ed80
call fcn.00410c00
add esp, 0x20
cmp dword [ebp - 0xd4], 0
je 0x467595
lea edx, [ebp - 0xd4]
push edx
call fcn.00443860
add esp, 4
test eax, eax
jne 0x467595
cmp dword [edi], 0x53464348
jne 0x467595
cmp dword [edi + 0x4158], 3
jl 0x467595
push 0x59ed80
call fcn.00410be0
add esp, 4
test eax, eax
je 0x467595
push str.buffer_destroy_failed
call fcn.0040feb0
mov esi, eax
or eax, 0xffffffff
add esp, 4
cmp eax, str.ts_csnetipc_networkfunction_send
jne 0x467537
push str.ts_csnetipc_networkfunction_send
push str._s_ENTER
lea ecx, [ebp - 0xcc]
push 0xc8
push ecx
call fcn.00410530
add esp, 0x10
lea eax, [ebp - 0xcc]
jmp 0x46756f
mov edx, 0xfffffffe
cmp edx, str.ts_csnetipc_networkfunction_send
jne 0x46756a
push str.ts_csnetipc_networkfunction_send
push str._s_EXIT
lea eax, [ebp - 0xcc]
push 0xc8
push eax
call fcn.00410530
add esp, 0x10
lea eax, [ebp - 0xcc]
jmp 0x46756f
mov eax, str.ts_csnetipc_networkfunction_send
push esi
push 0x49b
push str.D:BUILD_478059BUILDTS_SDKTS_SDK_SRC_source_ts_ts_csnetipc.c
push eax
push 0x1000
push 3
push edi
call fcn.0040fee0
push 0x59ed80
call fcn.00410c00
add esp, 0x20
cmp ebx, 0xffffffff
jne 0x4675bf
mov eax, dword [ebp - 0xd0]
mov edx, 3
mov ecx, edi
call fcn.004652c0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
cmp ebx, 1
jne 0x4675ac
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00506c7d
mov esp, ebp
pop ebp
ret