Function at 0x5f47d970
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
cmp dword [esi], ebx
jne 0x5f47da2a
mov ecx, dword [edi]
mov eax, ecx
dec eax
je 0x5f47daea
dec eax
je 0x5f47daab
dec eax
dec eax
je 0x5f47da94
sub eax, 4
je 0x5f47da80
sub eax, 8
je 0x5f47da21
sub eax, 0x10
je 0x5f47d9cb
sub eax, 0x20
je 0x5f47daea
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [edi + 4]
push ebx
call fcn.5f47d904
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x5f47d9bf
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push ebx
push dword [edi + 0xc]
call dword [sym.imp.GDI32.dll_CopyMetaFileA]
cmp eax, ebx
mov dword [edi + 0xc], eax
jne 0x5f47da09
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x5f47d9bf
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 4], edi
mov dword [esi], 0x20
push 1
pop eax
jmp 0x5f47d9c1
mov dword [esi], 0x10
mov dword [esi + 4], ebx
mov eax, dword [edi]
dec eax
je 0x5f47dc12
dec eax
je 0x5f47db83
dec eax
dec eax
je 0x5f47db0a
sub eax, 4
je 0x5f47daf1
sub eax, 8
je 0x5f47da59
sub eax, 0x30
jne 0x5f47d9bf
cmp dword [esi + 4], ebx
jne 0x5f47d9bf
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [0x5f4d1d70]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esi + 4], eax
mov eax, ecx
jmp 0x5f47d9c1
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
push edi
mov eax, dword [edi]
call dword [eax + 4]
mov dword [esi], 8
jmp 0x5f47da1c
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
push edi
mov eax, dword [edi]
call dword [eax + 4]
mov dword [esi], 4
jmp 0x5f47da1c
mov dword [esi], 2
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp + 0xc], eax
add eax, eax
push eax
call dword [0x5f4d1e1c]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x5f47d9bf
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push dword [edi + 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x5f47da1c
mov dword [esi], ecx
jmp 0x5f47da27
push dword [esi + 4]
mov edi, dword [edi + 4]
mov eax, dword [edi]
push ebx
push ebx
push ebx
push edi
call dword [eax + 0x1c]
neg eax
sbb eax, eax
inc eax
jmp 0x5f47d9c1
mov eax, dword [edi + 4]
lea edx, [ebp - 0x50]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x5f47d9bf
mov eax, dword [esi + 4]
push ebx
xor ecx, ecx
push ebx
mov edx, dword [eax]
push ebx
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [edx + 0x14]
mov eax, dword [edi + 4]
push ebx
xor ecx, ecx
push ebx
mov edx, dword [eax]
push ecx
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [edi + 4]
push ebx
push ebx
push dword [ebp - 0x44]
mov ecx, dword [eax]
push dword [ebp - 0x48]
push dword [esi + 4]
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x5f47d9bf
mov eax, dword [esi + 4]
push ebx
xor ecx, ecx
push ebx
mov edx, dword [eax]
xor esi, esi
push ecx
push esi
push eax
call dword [edx + 0x14]
mov edi, dword [edi + 4]
push ebx
xor eax, eax
push ebx
mov ecx, dword [edi]
push eax
push esi
push edi
call dword [ecx + 0x14]
jmp 0x5f47da1c
mov eax, dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x5f47dbb2
mov dword [ebp + 0x10], ebx
mov edi, dword [edi + 4]
cmp edi, ebx
mov dword [ebp + 0xc], edi
jne 0x5f47dbe8
xor esi, esi
push ebx
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x5f47d9c1
push eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp + 0x10], eax
add eax, 3
and al, 0xfc
call fcn.5f41a4e1
mov eax, esp
push ebx
push ebx
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
mov byte [eax], bl
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], eax
jmp 0x5f47db96
push edi
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.5f41a4e1
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x5f47dba2
push dword [edi + 4]
push dword [esi + 4]
call fcn.5f47d904
cmp eax, ebx
je 0x5f47d9bf
mov dword [esi + 4], eax
jmp 0x5f47da1c