Function at 0x425cc0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f1e0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4ba070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0
call fcn.00419ae0
push str.res.log
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0041b170
add esp, 4
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 4
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425d40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
call fcn.00452480
mov esi, eax
mov ecx, esi
call fcn.00452220
cmp byte [0x4be4e9], 0
jne 0x425db3
mov ecx, 0xf0
call fcn.00452af0
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 5
xorps xmm0, xmm0
movsd qword [ebp - 0x5c], xmm0
test eax, eax
je 0x425da6
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4be4e9
sub esp, 0xc
push 0x314
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.004522f0
mov byte [ebp - 4], 3
mov dword [0x4bf138], eax
jmp 0x425dbb
xor eax, eax
mov byte [ebp - 4], 3
mov dword [0x4bf138], eax
jmp 0x425dbb
xorps xmm0, xmm0
movsd qword [ebp - 0x5c], xmm0
mov ecx, esi
call fcn.00452230
mov ecx, dword [0x4bf138]
lea ecx, [ecx + 0xd0]
call fcn.00452220
mov eax, dword [0x4bf138]
lea ecx, [ebp - 0x48]
push dword [ebp - 0x54]
mov eax, dword [eax]
mov edi, dword [eax + 0x48]
call fcn.0041ae90
push dword [ebp - 0x60]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6c]
mov esi, dword [eax]
call fcn.0041af90
push esi
push dword [ebp - 0x50]
mov byte [ebp - 4], 7
push dword [eax]
push str.LogResult___s__lu_to___s_
push dword [0x4bf138]
call edi
mov edx, dword [ebp - 0x6c]
add esp, 0x14
add edx, 0xfffffff0
mov byte [ebp - 4], 8
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425e31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x425e4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, dword [0x4bf138]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4bf138]
lea ecx, [ecx + 0xd0]
call fcn.00452230
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
sub esp, 8
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x68]
push 0x100
push 3
push 3
push 0x40000000
push dword [ebp - 0x54]
call fcn.0041ccd0
mov esi, eax
call fcn.00452480
mov edi, eax
mov ecx, edi
call fcn.00452220
cmp byte [0x4be4ed], 0
jne 0x425f00
mov ecx, 0xf0
call fcn.00452af0
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x425ef5
movsd xmm0, qword [ebp - 0x5c]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4be4ed
sub esp, 0xc
push 0x31b
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.004522f0
jmp 0x425ef7
xor eax, eax
mov byte [ebp - 4], 0xa
mov dword [0x4bf1ac], eax
mov ecx, edi
call fcn.00452230
mov ecx, dword [0x4bf1ac]
lea ecx, [ecx + 0xd0]
call fcn.00452220
mov ecx, dword [0x4bf1ac]
push esi
push str.LogResult_Create__lu
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [0x4bf1ac]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4bf1ac]
lea ecx, [ecx + 0xd0]
call fcn.00452230
test esi, esi
js 0x4262c4
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x48]
push 2
push eax
push 0
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 0x4c], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x425f75
call fcn.004173b0
mov ebx, dword [ebp - 0x60]
mov ecx, ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x425f90
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004276d0
push 0x3a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call fcn.00427580
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x44]
call fcn.0041c920
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
call fcn.00426f70
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x426001
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x425ff7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4262ca
push edx
push ecx
call fcn.00455e65
add esp, 8
push 0x24
lea ecx, [ebp - 0x2c]
call fcn.00427580
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x70]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x70], 0
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42603b
call fcn.004173b0
mov ebx, eax
jmp 0x42603d
xor ebx, ebx
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, 0xffffffff
jne 0x42605e
call fcn.004173b0
test eax, eax
js 0x4260bb
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
call fcn.00452480
mov ecx, eax
mov dword [ebp - 0x48], eax
call fcn.00452220
cmp byte [0x4be553], 0
jne 0x4260ce
mov ecx, 0xf0
call fcn.00452af0
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x4260c3
movsd xmm0, qword [ebp - 0x5c]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4be553
sub esp, 0xc
push 0x328
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.004522f0
jmp 0x4260c5
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x5c]
jmp 0x426061
xor eax, eax
mov byte [ebp - 4], 0xc
mov dword [0x4bf0c4], eax
mov ecx, dword [ebp - 0x48]
call fcn.00452230
mov ecx, dword [0x4bf0c4]
lea ecx, [ecx + 0xd0]
call fcn.00452220
mov edx, dword [0x4bf0c4]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [edx]
mov ecx, dword [eax + 0x48]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x50]
push edi
push ebx
push str.LogResult_Write__lu___llu___s
push edx
call ecx
mov ecx, dword [0x4bf0c4]
add esp, 0x18
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4bf0c4]
lea ecx, [ecx + 0xd0]
call fcn.00452230
test ebx, ebx
js 0x4262cf
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x426142
call fcn.004173b0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x42617a
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x426170
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4262d5
push edx
push ecx
call fcn.00455e65
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
test esi, esi
je 0x426197
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4261b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x4262a6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045561a
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.00417140
call fcn.004643d8
push ebx
call fcn.00417140
call fcn.004643d8
int3