Function at 0x100d0435
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1011c710]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, ebp
xor ebx, ebx
cmp dword [esi], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jne 0x100d048b
mov ecx, dword [edi]
mov eax, ecx
dec eax
je 0x100d0486
dec eax
je 0x100d056f
dec eax
dec eax
je 0x100d0558
sub eax, 4
je 0x100d0541
sub eax, 8
je 0x100d0536
sub eax, 0x10
je 0x100d04d9
sub eax, 0x20
jne 0x100d04e9
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov eax, dword [edi]
dec eax
je 0x100d06c3
dec eax
je 0x100d0643
dec eax
dec eax
je 0x100d05ca
sub eax, 4
je 0x100d05b1
sub eax, 8
je 0x100d04b6
sub eax, 0x30
jne 0x100d04e9
cmp dword [esi + 4], ebx
jne 0x100d04e9
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 0x100d06dc
push dword [edi + 4]
push ebx
call fcn.100d0252
cmp eax, ebx
mov dword [ebp - 0x54], eax
jne 0x100d04f0
xor eax, eax
jmp 0x100d06dc
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 0x100d051e
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x100d04e9
mov edi, dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 4], edi
mov dword [esi], 0x20
jmp 0x100d06d9
mov dword [esi], 0x10
jmp 0x100d0488
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov dword [esi], 8
jmp 0x100d06d9
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov dword [esi], 4
jmp 0x100d06d9
call dword [0x1011a9fc]
mov dword [esi], 2
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x100d04e9
push dword [ebp - 0x50]
push dword [edi + 4]
push eax
call fcn.100ab860
add esp, 0xc
jmp 0x100d06d9
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 0x100d06dc
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x4c]
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x100d04e9
mov eax, dword [esi + 4]
mov edx, dword [eax]
push ebx
push ebx
push ebx
xor ecx, ecx
push ecx
push eax
mov dword [ebp - 0x58], ebx
call dword [edx + 0x14]
mov eax, dword [edi + 4]
mov edx, dword [eax]
push ebx
push ebx
xor ecx, ecx
push ecx
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push ebx
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [esi + 4]
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x100d04e9
mov eax, dword [esi + 4]
mov edx, dword [eax]
push ebx
push ebx
xor ecx, ecx
push ecx
xor esi, esi
push esi
push eax
call dword [edx + 0x14]
mov edi, dword [edi + 4]
mov ecx, dword [edi]
push ebx
push ebx
xor eax, eax
push eax
push esi
push edi
call dword [ecx + 0x14]
jmp 0x100d06d9
call dword [0x1011a9fc]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 4]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x58], eax
jne 0x100d0661
mov dword [ebp - 0x50], ebx
jmp 0x100d068a
push eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x50], eax
add eax, 3
and eax, 0xfffffffc
call fcn.100ab6e0
mov eax, esp
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x58]
push eax
call fcn.10001059
mov dword [ebp - 0x50], eax
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x100d0695
xor eax, eax
jmp 0x100d06b6
push edi
call esi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.100ab6e0
mov eax, esp
push dword [ebp - 0x54]
push esi
push edi
push eax
call fcn.10001059
push ebx
push dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x100d06dc
push dword [edi + 4]
push dword [esi + 4]
call fcn.100d0252
cmp eax, ebx
je 0x100d04e9
mov dword [esi + 4], eax
xor eax, eax
inc eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ac33f
leave
ret 0xc