Function at 0x10038350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085926
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x100a836c]
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 0x10038395
mov dword [ebx + 0xc], 8
jmp 0x1003860e
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
inc eax
push eax
mov dword [ebp - 0x18], eax
call fcn.100318ab
mov esi, eax
mov dword [ebp - 0x1c], eax
add esp, 4
test esi, esi
je 0x100383c4
push dword [ebp - 0x18]
push 0
push esi
call fcn.10057470
add esp, 0xc
mov byte [esi], 0
jmp 0x100383c9
xor esi, esi
mov dword [ebp - 0x1c], 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.100576c0
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 0x1003850f
mov dword [ebx + 0xc], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.100359c0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x100384de
push 0x61
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 0x4c], cl
lea ecx, [ebp - 0x4c]
push str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
mov dword [ebp - 0x38], 0xf
call fcn.1000c1b0
push 3
push 0x10088e44
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
call fcn.1000c1b0
mov byte [ebp - 4], 1
call fcn.100359c0
mov edi, eax
lea ecx, [ebp - 0x114]
push 0x4a
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10005460
mov esi, eax
push str.send_failed__error_code_:
push esi
mov byte [ebp - 4], 2
call fcn.10006a40
add esp, 8
mov ecx, esi
push dword [ebp - 0x18]
call fcn.10037b30
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x114]
call fcn.10006c90
lea ecx, [ebp - 0x34]
call fcn.100060b0
lea ecx, [ebp - 0x4c]
call fcn.100060b0
mov esi, dword [ebp - 0x18]
cmp esi, 0xe8
je 0x100384fc
cmp esi, 0xe9
je 0x100384fc
cmp esi, 0x6d
je 0x100384fc
cmp esi, 6
jne 0x10038601
mov dword [ebx + 0xc], 7
mov dword [ebx + 0x10], 0
jmp 0x10038601
cmp dword [ebp - 0x14], edi
je 0x100385fa
mov dword [ebx + 0xc], 5
call fcn.100359c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10038601
push 0x61
push str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], al
call fcn.1000c1b0
push 3
push 0x10088e44
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 3
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
call fcn.1000c1b0
mov byte [ebp - 4], 4
call fcn.100359c0
mov edi, eax
lea ecx, [ebp - 0x1ac]
push 0x53
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.10005460
mov esi, eax
push str.send_data_size_error_sen_size:
push esi
mov byte [ebp - 4], 5
call fcn.10006a40
add esp, 8
mov ecx, esi
push dword [ebp - 0x14]
call fcn.10037b30
push str.__buf_size:
push esi
call fcn.10006a40
add esp, 8
mov ecx, esi
push dword [ebp - 0x18]
call fcn.10037b30
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1ac]
call fcn.10006c90
lea ecx, [ebp - 0x64]
call fcn.100060b0
lea ecx, [ebp - 0x7c]
call fcn.100060b0
jmp 0x10038601
mov dword [ebx + 0xc], 0
push 1
push dword [ebp - 0x1c]
call fcn.10031516
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.10031895
mov esp, ebp
pop ebp
ret 4