Function at 0x10039060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100af0e6
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x100dfa44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x10], 0
mov edi, dword [ebp + 8]
jne 0x100390a5
mov dword [ebx + 0xc], 8
jmp 0x10039391
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
inc eax
push eax
mov dword [ebp - 0x18], eax
call fcn.10035b71
mov esi, eax
mov dword [ebp - 0x20], eax
add esp, 4
test esi, esi
je 0x100390d4
push dword [ebp - 0x18]
push 0
push esi
call fcn.1007c2c0
add esp, 0xc
mov byte [esi], 0
jmp 0x100390d9
xor esi, esi
mov dword [ebp - 0x20], esi
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
sub eax, ecx
mov dword [ebp - 0x14], 0
push eax
push ecx
push esi
call fcn.1007b7c0
mov eax, dword [edi + 8]
add esp, 0xc
sub eax, dword [edi + 4]
push 0
lea edi, [eax + 1]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
push eax
push edi
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1003925d
mov dword [ebx + 0xc], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10033f90
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x1003922c
cmp dword [ebx + 0x2005c], 8
lea eax, [ebx + 0x20048]
mov dword [ebp - 0x1c], eax
jb 0x1003915d
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push 0x61
push str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
call fcn.1000d770
push 3
push 0x100b56ac
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
call fcn.1000d770
mov byte [ebp - 4], 1
call fcn.10033f90
mov edi, eax
lea ecx, [ebp - 0x118]
push 0x7c
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10008840
mov esi, eax
push str.send_failed__error_code_:
push esi
mov byte [ebp - 4], 2
call fcn.10009c20
add esp, 8
mov ecx, esi
push dword [ebp - 0x18]
call fcn.10009a80
push str.__channel_name:
push esi
call fcn.10009c20
mov ecx, dword [ebp - 0x1c]
mov eax, str._null_
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.100168f0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
call fcn.10009d40
lea ecx, [ebp - 0x38]
call fcn.100092e0
lea ecx, [ebp - 0x50]
call fcn.100092e0
mov esi, dword [ebp - 0x18]
cmp esi, 0xe8
je 0x1003924a
cmp esi, 0xe9
je 0x1003924a
cmp esi, 0x6d
je 0x1003924a
cmp esi, 6
jne 0x10039384
mov dword [ebx + 0xc], 7
mov dword [ebx + 0x10], 0
jmp 0x10039384
cmp dword [ebp - 0x14], edi
je 0x1003937d
mov dword [ebx + 0xc], 5
call fcn.10033f90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10039384
add ebx, 0x20048
cmp dword [ebx + 0x14], 8
jb 0x10039297
mov ebx, dword [ebx]
push 0x61
push str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
call fcn.1000d770
push 3
push 0x100b56ac
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 3
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
call fcn.1000d770
mov byte [ebp - 4], 4
call fcn.10033f90
mov edi, eax
lea ecx, [ebp - 0x1b0]
push 0x85
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.10008840
mov esi, eax
push str.send_data_size_error_sen_size:
push esi
mov byte [ebp - 4], 5
call fcn.10009c20
add esp, 8
mov ecx, esi
push dword [ebp - 0x14]
call fcn.10009a80
push str.__buf_size:
push esi
call fcn.10009c20
add esp, 8
mov ecx, esi
push dword [ebp - 0x18]
call fcn.10009a80
push str.__channel_name:
push esi
call fcn.10009c20
test ebx, ebx
mov eax, str._null_
cmovne eax, ebx
push eax
push esi
call fcn.100168f0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1b0]
call fcn.10009d40
lea ecx, [ebp - 0x68]
call fcn.100092e0
lea ecx, [ebp - 0x80]
call fcn.100092e0
jmp 0x10039384
mov dword [ebx + 0xc], 0
push 1
push dword [ebp - 0x20]
call fcn.10035b63
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10035ef0
mov esp, ebp
pop ebp
ret 4