Function at 0x10057d60
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1780
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x100d800c]
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 dword [ebp - 0x2c], edx
mov edi, ecx
mov dword [ebp - 0x48], edi
xor ebx, ebx
nop dword [eax + eax]
push edi
lea ecx, [ebp - 0x60]
call fcn.10007900
push dword [ebp - 0x2c]
mov dword [ebp - 4], 0
lea esi, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
lea ecx, [ebp - 0x44]
cmovae esi, dword [ebp - 0x60]
call fcn.10007900
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0
cmovae eax, dword [ebp - 0x44]
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov edx, dword [ebp - 0x30]
mov esi, eax
cmp edx, 8
jb 0x10057e1d
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10057e13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057f94
push edx
push ecx
call fcn.1006d8b6
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x10057e72
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10057e68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057f94
push edx
push ecx
call fcn.1006d8b6
add esp, 8
test esi, esi
jne 0x10057f78
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x60]
call fcn.10007900
mov dword [ebp - 4], 1
lea esi, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
lea ecx, [ebp - 0x44]
push edi
cmovae esi, dword [ebp - 0x60]
call fcn.10007900
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 9
cmovae eax, dword [ebp - 0x44]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x30]
mov esi, eax
cmp edx, 8
jb 0x10057ef1
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10057ee7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057f94
push edx
push ecx
call fcn.1006d8b6
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x10057f42
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10057f38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057f94
push edx
push ecx
call fcn.1006d8b6
add esp, 8
test esi, esi
jne 0x10057f78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x10057f78
cmp edi, 3
je 0x10057f78
inc ebx
cmp ebx, 5
je 0x10057f99
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0xa
mov dword [ebp - 0x64], esi
call fcn.10057850
mov edi, dword [ebp - 0x48]
jmp 0x10057da0
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.1006d58e
mov esp, ebp
pop ebp
ret
call fcn.100869bf
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x98]
push eax
call fcn.10020ff0
mov esi, eax
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 4], 2
call fcn.10020ff0
push eax
mov edx, str.Failed_to_commit
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.10009e10
push 0x100c7b90
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.1000aa50
push esi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10034e80
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.10003840
lea ecx, [ebp - 0x44]
call fcn.10003840
lea ecx, [ebp - 0x80]
call fcn.10003840
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xa
call fcn.10003840
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.1000a4f0
int3