Function at 0x10003b50
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101feac6
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x1044501c]
xor eax, esp
mov dword [esp + 0x638], eax
push ebx
push esi
push edi
mov eax, dword [0x1044501c]
xor eax, esp
push eax
lea eax, [esp + 0x650]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
test edi, edi
je 0x10003f1f
cmp dword [esi + 0x14], edi
je 0x10003bb0
push edi
call sym.OOXMLDocument.dll_protected:_int___thiscall_OOXML::COOXMLDocument::_InsertPart_class_OOXML::COOXMLPart__
mov eax, dword [edi]
mov edx, dword [eax + 0x94]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x70]
mov ecx, edi
xor ebx, ebx
call edx
test eax, eax
jne 0x10003bf8
mov eax, dword [edi + 0x10]
cmp eax, 1
jne 0x10003bdb
mov ebx, eax
jmp 0x10003bf1
cmp dword [esp + 0x10], ebx
jne 0x10003bea
test eax, eax
jne 0x10003bea
lea ebx, [eax + 1]
jmp 0x10003bf1
cmp eax, 3
jne 0x10003bf1
xor ebx, ebx
cmp dword [esi + 0x14], edi
jne 0x10003bf8
xor ebx, ebx
cmp dword [esp + 0x10], 0
je 0x10003c48
cmp dword [edi + 0x10], 0
jne 0x10003c48
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
test eax, eax
je 0x10003c48
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
test eax, eax
jne 0x10003c3d
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx]
mov esi, dword [edi]
mov eax, dword [edx + 0x68]
add esi, 0x18
call eax
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
mov esi, dword [esp + 0x14]
mov eax, dword [edi]
mov edx, dword [eax + 8]
push 0
mov ecx, edi
call edx
test ebx, ebx
je 0x10003db5
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
mov ecx, edi
call edx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x68]
call edx
mov ecx, dword [0x104450ec]
mov edi, eax
lea ebx, [esp + 0x10]
mov dword [esp + 0x10], ecx
call fcn.101f1dc0
mov edx, str.pre_
mov esi, 5
mov eax, ebx
mov dword [esp + 0x658], 0
call fcn.101f1f10
mov ebx, dword [esp + 0x1c]
push 0x100
lea edx, [esp + 0x448]
push edx
push 0x100
lea eax, [esp + 0x250]
push eax
mov eax, dword [ebx]
push 0x100
lea ecx, [esp + 0x58]
push ecx
push 3
lea edx, [esp + 0x58]
push edx
mov edx, dword [eax + 0x64]
mov ecx, ebx
call edx
push eax
call dword [sym.imp.MSVCR90.dll__wsplitpath_s]
lea eax, [esp + 0x6a]
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003ce1
sub eax, edx
sar eax, 1
je 0x10003d01
mov esi, eax
lea edx, [esp + 0x46]
lea eax, [esp + 0x10]
call fcn.101f1f10
push 0x10217794
push 0x10217704
lea eax, [esp + 0x18]
push eax
call fcn.101f2290
mov esi, dword [esp + 0x10]
push esi
call fcn.10140e70
add esp, 4
test eax, eax
je 0x10003f03
lea edx, [esp + 0x244]
lea edi, [esp + 0x10]
call fcn.10005bc0
lea edx, [esp + 0x444]
call fcn.10005bc0
mov edi, dword [esp + 0x18]
test edi, edi
je 0x10003ef8
push 4
push edi
call dword [sym.imp.MSVCR90.dll__waccess]
add esp, 8
test eax, eax
jne 0x10003ef8
mov esi, dword [esp + 0x10]
push 1
push eax
push eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x10003f03
mov edx, dword [ebx]
mov eax, dword [edx + 0x84]
push esi
mov ecx, ebx
call eax
add esi, 0xfffffff4
mov dword [esp + 0x658], 0xffffffff
cmp dword [esi], 0xfffffffe
je 0x10003db3
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10003db3
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, ebx
lea ecx, [esp + 0x24]
push ecx
call fcn.10144240
mov dword [esp + 0x658], 1
mov edx, dword [edi]
mov edx, dword [edx + 0x54]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call edx
test eax, eax
jle 0x10003f32
mov ebx, dword [esp + 0x30]
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x34]
jbe 0x10003df2
call edi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ebx
mov edi, edi
mov ebx, dword [esp + 0x34]
cmp dword [esp + 0x30], ebx
jbe 0x10003e0c
call edi
test esi, esi
je 0x10003e16
cmp esi, dword [esp + 0x24]
je 0x10003e18
call edi
cmp dword [esp + 0x40], ebx
je 0x10003f32
test esi, esi
jne 0x10003f23
call edi
xor eax, eax
mov ecx, dword [esp + 0x40]
cmp ecx, dword [eax + 0x10]
jb 0x10003e39
call edi
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x20]
mov esi, dword [eax + 0x10]
cmp dword [eax + 0xc], esi
jbe 0x10003e4a
call edi
mov ebx, dword [ebx + 0x20]
mov edi, dword [ebx + 0xc]
cmp edi, dword [ebx + 0x10]
jbe 0x10003e5b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebx]
mov dword [esp + 0x1c], edx
cmp edi, esi
je 0x10003e7b
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
jmp 0x10003e70
cmp dword [edi], eax
je 0x10003e7b
add edi, 4
cmp edi, esi
jne 0x10003e70
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx + 0x20]
mov eax, dword [ebx + 0x10]
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov dword [esp + 0x18], eax
cmp dword [ebx + 0xc], eax
jbe 0x10003e96
call esi
mov ebx, dword [ebx]
test ebx, ebx
je 0x10003ea2
cmp ebx, dword [esp + 0x1c]
je 0x10003ea4
call esi
cmp dword [esp + 0x18], edi
mov edi, dword [esp + 0x3c]
jne 0x10003ed1
test edi, edi
jne 0x10003f2a
call esi
xor eax, eax
mov edx, dword [esp + 0x40]
cmp edx, dword [eax + 0x10]
jb 0x10003ec1
call esi
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x18]
call sym.OOXMLDocument.dll_protected:_int___thiscall_OOXML::COOXMLDocument::_WriteTraversePart_struct_ISDPart__
test edi, edi
jne 0x10003f2e
call esi
xor eax, eax
mov edx, dword [esp + 0x40]
cmp edx, dword [eax + 0x10]
jb 0x10003ee4
call esi
add dword [esp + 0x40], 4
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x3c]
jmp 0x10003e00
mov edx, dword [ebx]
mov esi, dword [esp + 0x10]
jmp 0x10003d81
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x10003f1f
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10003f1f
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
jmp 0x10003f63
mov eax, dword [esi]
jmp 0x10003e2e
mov eax, dword [edi]
jmp 0x10003eb6
mov eax, dword [edi]
jmp 0x10003ed9
mov eax, dword [esp + 0x30]
xor esi, esi
cmp eax, esi
je 0x10003f45
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x650]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.101f2bc8
mov esp, ebp
pop ebp
ret 4