Function at 0x56f507
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, esp
mov dword [esi + 0x38], ebp
lea eax, [esi + 0x40]
mov dword [esi], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x587200
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
cmp dword [edx], 0x80000000
je 0x56f6e6
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00531011
mov eax, dword [edi]
cmp eax, 0x80000000
mov dword [esi + 4], eax
je 0x56f6e6
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x10]
mov edx, dword [ecx + 4]
mov edi, dword [eax]
mov eax, dword [eax + 4]
and dword [esi + 0x48], 0
mov dword [esi + 0xc], edx
mov dword [esi + 0x34], edi
mov edi, dword [ecx + 8]
mov dword [esi + 0x30], eax
push edi
call fcn.004d9510
pop eax
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
cmp ecx, 0x80000000
je 0x56f5bc
lea edx, [esi + 0x10]
mov dword [edx], ecx
mov dword [edx + 4], edi
mov dword [edx + 8], eax
lea ecx, [esi + 0x24]
push 1
call fcn.004e14e0
pop eax
mov eax, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
cmp eax, 0x80000000
jne 0x56f5ea
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ecx + 4], edi
mov edi, dword [esi + 0xc]
mov dword [ecx + 8], eax
mov dword [ecx], 1
mov ecx, ebx
mov edx, edi
call fcn.0041b0e1
mov eax, dword [esi + 0x40]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esi + 0x34]
mov dword [esi + 0x20], eax
mov dword [esi + 8], edi
mov dword [esi + 0x48], 1
lea ecx, [esi + 0x10]
push dword [esi + 0x30]
call fcn.004d9510
pop eax
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
cmp ecx, 0x80000000
je 0x56f63e
lea edx, [esi + 0x10]
mov dword [edx], ecx
mov dword [edx + 4], edi
mov dword [edx + 8], eax
lea ecx, [esi + 0x24]
push 1
call fcn.004e14e0
pop eax
mov ebx, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
cmp ebx, 0x80000000
jne 0x56f66c
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ecx + 8], eax
mov dword [ecx + 4], edi
mov dword [ecx], 1
cmp dword [esi + 0x20], 0
mov edi, dword [esi + 0xc]
je 0x56f5d0
push 2
pop edx
mov ecx, dword [esi + 8]
call fcn.00405250
jmp 0x56f5d0
and dword [esi + 0x14], 0
and dword [esi + 0x10], 0
push 0
push 0
lea eax, [esi + 0x10]
push eax
push 0x4f59e0
push edi
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
je 0x56f6b7
mov eax, dword [esi + 0x10]
mov edx, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
and dword [edx], 0
test ebx, ebx
je 0x56f6ae
push 2
pop edx
mov ecx, edi
call fcn.00405250
cmp dword [esi + 0x20], 0
mov ebx, dword [esi + 4]
jmp 0x56f653
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [esi]
test ebx, ebx
mov ebx, dword [esi + 4]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
je 0x56f64f
push 2
pop edx
mov ecx, edi
call fcn.00405250
jmp 0x56f64f
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
push 0x64dd1c
call fcn.0059a2a0
push ebp
sub esp, 0x18
lea esi, [ebp - 0x4c]
mov ebp, dword [esi + 0x38]
cmp dword [esi + 0x20], 0
je 0x56f713
push 2
pop edx
mov ecx, dword [esi + 8]
call fcn.00405250
add esp, 0x18
pop ebp
ret