Function at 0x10010210
Capabilities:
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10042d77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x854
push ebx
push ebp
push esi
push edi
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x40]
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, str.trinfo
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x87c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1c], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea ebx, [ebp + 0x52]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 1
push ecx
call fcn.1000f9e0
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x75]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x14
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x874], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x2020202
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x880]
mov ecx, ebp
mov edx, ecx
lea edi, [esp + 0x9a]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x34], eax
and ecx, 3
mov dword [esp + 0x38], eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], eax
add ebp, 0x22
push ecx
lea edx, [esp + 0x7c]
mov dword [esp + 0x44], eax
push ebp
push edx
mov dword [esp + 0x50], eax
call fcn.1000ec90
lea eax, [esp + 0x54]
push ebx
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.1000dc30
add esp, 0x20
mov byte [esp + 0x86c], 1
lea edx, [esp + 0x4f]
mov edi, dword [esp + 0x28]
or ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x874]
push ecx
lea ecx, [esp + 0x14]
call fcn.1003bd8c
mov edx, dword [esp + 0x10]
push 0x100674d4
push edx
mov byte [esp + 0x874], 2
call fcn.10020ce8
add esp, 8
test eax, eax
je 0x100104a5
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.1003bab1
push 0x10051cbc
lea ecx, [esp + 0x18]
mov byte [esp + 0x870], 3
call fcn.1003c012
mov ecx, dword [esp + 0x14]
push 0
push ecx
call fcn.10009aa0
add esp, 8
test eax, eax
je 0x100103bc
mov edx, dword [esp + 0x14]
push 0
push edx
call fcn.1000a460
add esp, 8
mov eax, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebp
je 0x100104ab
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x48]
push ebx
push edx
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100104da
cmp dword [esp + 0x20], ebx
jne 0x100104da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.1003bab1
push 0x10051cb8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x870], 4
call fcn.1003c012
mov ecx, dword [esp + 0x18]
push 0
push ecx
call fcn.10009aa0
add esp, 8
test eax, eax
je 0x1001045b
mov edx, dword [esp + 0x18]
push 0
push edx
call fcn.1000a460
add esp, 8
mov eax, dword [esp + 0x10]
push 0
push eax
call fcn.10009aa0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
add esp, 8
test eax, eax
je 0x10010484
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push edx
call esi
test eax, eax
je 0x100104b5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call esi
test eax, eax
je 0x100104bf
mov edx, dword [esp + 0x14]
push 0
push edx
call fcn.1000a460
add esp, 8
jmp 0x100104c7
mov dword [esp + 0x1c], ebp
jmp 0x100104fa
mov dword [esp + 0x1c], 0xfffffffe
jmp 0x100104e9
mov dword [esp + 0x1c], 0xfffffffc
jmp 0x100104c7
mov dword [esp + 0x1c], 0xfffffffb
lea ecx, [esp + 0x18]
mov byte [esp + 0x86c], 3
call fcn.1003bd1e
jmp 0x100104e9
push esi
mov dword [esp + 0x20], 0xfffffffd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov byte [esp + 0x86c], 2
call fcn.1003bd1e
lea ecx, [esp + 0x10]
mov byte [esp + 0x86c], 1
call fcn.1003bd1e
lea ecx, [esp + 0x28]
mov byte [esp + 0x86c], 0
call fcn.1003bd1e
lea ecx, [esp + 0x24]
mov dword [esp + 0x86c], ebp
call fcn.1003bd1e
mov ecx, dword [esp + 0x864]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x860
ret 0xc