Function at 0x10009db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x244c
call fcn.1001b7d0
mov eax, dword [0x1004a870]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240c], ecx
mov dword [ebp - 0x2420], 0
mov dword [ebp - 0x2430], 0
mov dword [ebp - 0x242c], 0
mov dword [ebp - 0x241c], 0
mov dword [ebp - 0x2418], 0
mov byte [ebp - 0x2405], 0
mov eax, dword [ebp - 0x240c]
cmp dword [eax + 4], 0
jne 0x10009e26
push str._RunCmd__m_hWritePipeHandle_is_NULL
call fcn.10001730
add esp, 4
xor eax, eax
jmp 0x1000a147
mov ecx, dword [ebp - 0x240c]
cmp dword [ecx], 0
jne 0x10009e45
push str._RunCmd__m_hReadPipeHandle_is_NULL
call fcn.10001730
add esp, 4
xor eax, eax
jmp 0x1000a147
mov edx, dword [ebp + 8]
mov dword [ebp - 0x2410], edx
mov eax, dword [ebp - 0x2410]
add eax, 2
mov dword [ebp - 0x244c], eax
mov ecx, dword [ebp - 0x2410]
mov dx, word [ecx]
mov word [ebp - 0x2426], dx
add dword [ebp - 0x2410], 2
cmp word [ebp - 0x2426], 0
jne 0x10009e5d
mov eax, dword [ebp - 0x2410]
sub eax, dword [ebp - 0x244c]
sar eax, 1
mov dword [ebp - 0x2440], eax
mov ecx, dword [ebp - 0x2440]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._RunCmd__wcCommand_s__dwWrite_d___2_
call fcn.10001730
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x1004]
push eax
call fcn.1001afa0
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0
push 1
call dword [0x10038090]
mov dword [ebp - 0x2444], eax
push 0
push 0
mov edx, dword [ebp - 0x2444]
push edx
lea eax, [ebp - 0x1004]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0
push 1
call dword [0x10038090]
mov dword [ebp - 0x2448], eax
cmp dword [ebp - 0x2448], 0
jg 0x10009f23
push str._RunCmd__WideCharToMultiByte_error...
call fcn.10001730
add esp, 4
xor eax, eax
jmp 0x1000a147
lea edx, [ebp - 0x1004]
mov dword [ebp - 0x2414], edx
mov eax, dword [ebp - 0x2414]
add eax, 1
mov dword [ebp - 0x2434], eax
mov ecx, dword [ebp - 0x2414]
mov dl, byte [ecx]
mov byte [ebp - 0x2406], dl
add dword [ebp - 0x2414], 1
cmp byte [ebp - 0x2406], 0
jne 0x10009f3e
mov eax, dword [ebp - 0x2414]
sub eax, dword [ebp - 0x2434]
mov dword [ebp - 0x2438], eax
mov ecx, dword [ebp - 0x2438]
mov dword [ebp - 0x2420], ecx
mov edx, dword [ebp - 0x2420]
push edx
lea eax, [ebp - 0x1004]
push eax
push str._RunCmd__After_WideCharToMultiByte_pCMD_s__len_d
call fcn.10001730
add esp, 0xc
push 0
lea ecx, [ebp - 0x242c]
push ecx
mov edx, dword [ebp - 0x2420]
push edx
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp - 0x240c]
mov edx, dword [ecx + 4]
push edx
call dword [0x10038118]
mov eax, dword [ebp - 0x242c]
push eax
push str._RunCmd__dwRealWrite_d___2_
call fcn.10001730
add esp, 8
push 0x1f4
call dword [0x100380bc]
push 0x1003b53c
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1001b6e8
add esp, 8
mov dword [ebp - 0x2424], eax
cmp dword [ebp - 0x2424], 0
jne 0x1000a027
push str._RunCmd__Open_LocFilePath_error...
call fcn.10001730
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x243c], edx
mov eax, dword [ebp - 0x243c]
push eax
call fcn.1001990a
add esp, 4
xor eax, eax
jmp 0x1000a147
push str._RunCmd__Ready_to_write_result_to_file...
call fcn.10001730
add esp, 4
movzx ecx, byte [ebp - 0x2405]
test ecx, ecx
jne 0x1000a133
push 0x1400
push 0
lea edx, [ebp - 0x2404]
push edx
call fcn.1001afa0
add esp, 0xc
push 0
lea eax, [ebp - 0x2418]
push eax
lea ecx, [ebp - 0x241c]
push ecx
push 0x400
lea edx, [ebp - 0x2404]
push edx
mov eax, dword [ebp - 0x240c]
mov ecx, dword [eax]
push ecx
call dword [0x100380c8]
test eax, eax
je 0x1000a126
cmp dword [ebp - 0x241c], 0
ja 0x1000a09a
jmp 0x1000a126
mov edx, dword [ebp - 0x241c]
movzx eax, byte [ebp + edx - 0x2405]
cmp eax, 0xa
je 0x1000a0c1
push str._RunCmd__End.
call fcn.10001730
add esp, 4
mov byte [ebp - 0x2405], 1
push 0
lea ecx, [ebp - 0x2430]
push ecx
mov edx, dword [ebp - 0x2418]
push edx
lea eax, [ebp - 0x2404]
push eax
mov ecx, dword [ebp - 0x240c]
mov edx, dword [ecx]
push edx
call dword [0x10038070]
mov eax, dword [ebp - 0x2418]
push eax
mov ecx, dword [ebp - 0x2430]
push ecx
push str._RunCmd__Write_file...dwRead_d__dwTotalBytesAvail_d
call fcn.10001730
add esp, 0xc
mov edx, dword [ebp - 0x2424]
push edx
mov eax, dword [ebp - 0x2418]
push eax
push 1
lea ecx, [ebp - 0x2404]
push ecx
call fcn.1001b666
add esp, 0x10
jmp 0x1000a059
push 0x64
call dword [0x100380bc]
jmp 0x1000a034
mov edx, dword [ebp - 0x2424]
push edx
call fcn.1001b496
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a094
mov esp, ebp
pop ebp
ret 8