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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ee10
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4b9070]
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.00419770
push str.res.log
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0041ae10
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 0x4259c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
call fcn.004520f0
mov esi, eax
mov ecx, esi
call fcn.00451e90
cmp byte [0x4bd4e9], 0
jne 0x425a33
mov ecx, 0xf0
call fcn.00452760
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 5
xorps xmm0, xmm0
movsd qword [ebp - 0x5c], xmm0
test eax, eax
je 0x425a26
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4bd4e9
sub esp, 0xc
push 0x314
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.00451f60
mov byte [ebp - 4], 3
mov dword [0x4be11c], eax
jmp 0x425a3b
xor eax, eax
mov byte [ebp - 4], 3
mov dword [0x4be11c], eax
jmp 0x425a3b
xorps xmm0, xmm0
movsd qword [ebp - 0x5c], xmm0
mov ecx, esi
call fcn.00451ea0
mov ecx, dword [0x4be11c]
lea ecx, [ecx + 0xd0]
call fcn.00451e90
mov eax, dword [0x4be11c]
lea ecx, [ebp - 0x48]
push dword [ebp - 0x54]
mov eax, dword [eax]
mov edi, dword [eax + 0x48]
call fcn.0041ab30
push dword [ebp - 0x60]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6c]
mov esi, dword [eax]
call fcn.0041ac30
push esi
push dword [ebp - 0x50]
mov byte [ebp - 4], 7
push dword [eax]
push str.LogResult___s__lu_to___s_
push dword [0x4be11c]
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 0x425ab1
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 0x425acf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, dword [0x4be11c]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4be11c]
lea ecx, [ecx + 0xd0]
call fcn.00451ea0
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.0041c970
mov esi, eax
call fcn.004520f0
mov edi, eax
mov ecx, edi
call fcn.00451e90
cmp byte [0x4bd4ed], 0
jne 0x425b80
mov ecx, 0xf0
call fcn.00452760
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x425b75
movsd xmm0, qword [ebp - 0x5c]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4bd4ed
sub esp, 0xc
push 0x31b
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.00451f60
jmp 0x425b77
xor eax, eax
mov byte [ebp - 4], 0xa
mov dword [0x4be190], eax
mov ecx, edi
call fcn.00451ea0
mov ecx, dword [0x4be190]
lea ecx, [ecx + 0xd0]
call fcn.00451e90
mov ecx, dword [0x4be190]
push esi
push str.LogResult_Create__lu
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [0x4be190]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4be190]
lea ecx, [ecx + 0xd0]
call fcn.00451ea0
test esi, esi
js 0x425f44
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 0x425bf5
call fcn.00417040
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 0x425c10
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00427350
push 0x3a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call fcn.00427200
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x44]
call fcn.0041c5c0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
call fcn.00426bf0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x425c81
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x425c77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425f4a
push edx
push ecx
call fcn.00455ac5
add esp, 8
push 0x24
lea ecx, [ebp - 0x2c]
call fcn.00427200
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 0x425cbb
call fcn.00417040
mov ebx, eax
jmp 0x425cbd
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 0x425cde
call fcn.00417040
test eax, eax
js 0x425d3b
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
call fcn.004520f0
mov ecx, eax
mov dword [ebp - 0x48], eax
call fcn.00451e90
cmp byte [0x4bd553], 0
jne 0x425d4e
mov ecx, 0xf0
call fcn.00452760
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x425d43
movsd xmm0, qword [ebp - 0x5c]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x4bd553
sub esp, 0xc
push 0x328
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerAuxiliaryServiceAuxiliaryService.cpp
push 0x50
call fcn.00451f60
jmp 0x425d45
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x5c]
jmp 0x425ce1
xor eax, eax
mov byte [ebp - 4], 0xc
mov dword [0x4be0a8], eax
mov ecx, dword [ebp - 0x48]
call fcn.00451ea0
mov ecx, dword [0x4be0a8]
lea ecx, [ecx + 0xd0]
call fcn.00451e90
mov edx, dword [0x4be0a8]
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 [0x4be0a8]
add esp, 0x18
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4be0a8]
lea ecx, [ecx + 0xd0]
call fcn.00451ea0
test ebx, ebx
js 0x425f4f
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x425dc2
call fcn.00417040
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x425dfa
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x425df0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425f55
push edx
push ecx
call fcn.00455ac5
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
test esi, esi
je 0x425e17
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 0x425e36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x425f26
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.0045527a
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.00416dd0
call fcn.00464038
push ebx
call fcn.00416dd0
call fcn.00464038
int3