Function at 0x56363f
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 0x563766
mov ecx, dword [edi]
mov eax, ecx
dec eax
je 0x563761
dec eax
je 0x563722
dec eax
dec eax
je 0x56370b
sub eax, 4
je 0x5636f4
sub eax, 8
je 0x5636ec
sub eax, 0x10
je 0x56368f
sub eax, 0x20
je 0x563761
jmp 0x5638c5
push dword [edi + 4]
push ebx
call fcn.005638d9
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x5638c5
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 0x5636d4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x5638c5
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 4], edi
mov dword [esi], 0x20
jmp 0x5638cc
mov dword [esi], 0x10
jmp 0x563763
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 0x5638cc
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 0x5638cc
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 [sym.imp.ole32.dll_CoTaskMemAlloc]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x5638c5
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
push dword [edi + 4]
push eax
call fcn.0052ab70
add esp, 0xc
jmp 0x5638cc
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov eax, dword [edi]
dec eax
je 0x5638b6
dec eax
je 0x563846
dec eax
dec eax
je 0x5637cd
sub eax, 4
je 0x5637b4
sub eax, 8
je 0x56378d
sub eax, 0x30
jne 0x5638c5
cmp dword [esi + 4], ebx
jne 0x5638c5
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.ole32.dll_OleDuplicateData]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esi + 4], eax
mov eax, ecx
jmp 0x5638cf
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 0x5638cf
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 0x5638c5
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 0x5638c5
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 0x5638cc
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x563852
mov dword [ebp + 0xc], ebx
jmp 0x56387b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 0xc], eax
add eax, 3
and al, 0xfc
call fcn.0052d740
mov eax, esp
push dword [ebp + 0xc]
push dword [esi + 4]
push eax
call fcn.0054ca1e
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x563886
xor eax, eax
jmp 0x5638a9
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.0052d740
mov eax, esp
push esi
push dword [edi + 4]
push eax
call fcn.0054ca1e
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x5638cf
push dword [edi + 4]
push dword [esi + 4]
call fcn.005638d9
cmp eax, ebx
jne 0x5638c9
xor eax, eax
jmp 0x5638cf
mov dword [esi + 4], eax
push 1
pop eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret 0xc