Function at 0x4f1940
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7de660
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push esi
push edi
lea edi, [ebp - 0x114]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x87fbc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x4f1c6a
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x4f19a7
push 0x2bf
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFColemisc.cpp
call fcn.004053b0
test eax, eax
je 0x4f19a7
int3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
sub edx, 1
mov dword [ebp - 0xa8], edx
cmp dword [ebp - 0xa8], 0x3f
ja case.0x4f19db.2
mov eax, dword [ebp - 0xa8]
movzx ecx, byte [eax + 0x4f226c]
jmp dword [ecx*4 + 0x4f2250]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], 0
jmp 0x4f1c6a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [ecx]
mov esi, esp
push eax
mov edx, dword [ecx + 4]
mov dword [ebp - 0xac], edx
mov edi, esp
mov ecx, dword [ebp - 0xac]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
call dword [ebp - 0xac]
cmp esi, esp
call fcn.00784930
mov eax, dword [ebp + 0xc]
mov dword [eax], 4
mov eax, 1
jmp 0x4f21c1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [edx]
mov esi, esp
push ecx
mov eax, dword [edx + 4]
mov dword [ebp - 0xb0], eax
mov edi, esp
mov ecx, dword [ebp - 0xb0]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
call dword [ebp - 0xb0]
cmp esi, esp
call fcn.00784930
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 8
mov eax, 1
jmp 0x4f21c1
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
push 0
call fcn.004f1790
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4f1acf
xor eax, eax
jmp 0x4f21c1
mov esi, esp
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, esp
call fcn.00784930
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4f1af7
mov dword [ebp - 0xb4], 1
jmp 0x4f1b01
mov dword [ebp - 0xb4], 0
mov dl, byte [ebp - 0xb4]
mov byte [ebp - 0x19], dl
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x4f1b26
push 0x2dc
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFColemisc.cpp
call fcn.004053b0
test eax, eax
je 0x4f1b26
int3
xor edx, edx
jne 0x4f1ae5
mov esi, esp
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_CopyMetaFileA]
cmp esi, esp
call fcn.00784930
mov edx, dword [ebp - 0x18]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0
jne 0x4f1b7e
mov esi, esp
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, esp
call fcn.00784930
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, esp
call fcn.00784930
xor eax, eax
jmp 0x4f21c1
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, esp
call fcn.00784930
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x20
mov eax, 1
jmp 0x4f21c1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x10
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], 0
jmp 0x4f1c6a
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 0
jne 0x4f1beb
push 0x2f4
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFColemisc.cpp
call fcn.004053b0
test eax, eax
je 0x4f1beb
int3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x4f1bfa
call fcn.004d7c10
nop
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
push edx
call fcn.0079f950
add esp, 4
mov dword [ebp - 0x20], eax
push 2
mov eax, dword [ebp - 0x20]
add eax, 1
push eax
call fcn.004f1540
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 4], edx
cmp dword [ebp - 0x24], 0
jne 0x4f1c36
xor eax, eax
jmp 0x4f21c1
mov eax, dword [ebp - 0x20]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + ecx + 2]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.0041bb00
add esp, 0x10
mov eax, 1
jmp 0x4f21c1
xor eax, eax
jmp 0x4f21c1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp eax, dword [edx]
je 0x4f1c8a
push 0x309
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFColemisc.cpp
call fcn.004053b0
test eax, eax
je 0x4f1c8a
int3
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
sub ecx, 1
mov dword [ebp - 0xb8], ecx
cmp dword [ebp - 0xb8], 0x3f
ja case.0x4f1cbe.2
mov edx, dword [ebp - 0xb8]
movzx eax, byte [edx + 0x4f22c4]
jmp dword [eax*4 + 0x4f22ac]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.004f1790
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4f1ce8
xor eax, eax
jmp 0x4f21c1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov eax, 1
jmp 0x4f21c1
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
jne 0x4f1d18
push 0x31a
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFColemisc.cpp
call fcn.004053b0
test eax, eax
je 0x4f1d18
int3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x4f1d35
push 0x31b
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFColemisc.cpp
call fcn.004053b0
test eax, eax
je 0x4f1d35
int3
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc0], ecx
mov esi, esp
push 1
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], ecx
mov edi, esp
mov ecx, dword [ebp - 0xc4]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
call dword [ebp - 0xc4]
cmp esi, esp
call fcn.00784930
test eax, eax
je 0x4f1d9a
xor eax, eax
jmp 0x4f21c1
cmp dword [ebp - 0x74], 0
je 0x4f1db4
push 0x324
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFColemisc.cpp
call fcn.004053b0
test eax, eax
je 0x4f1db4
int3
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0xcc], edx
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
mov edi, esp
mov ecx, dword [ebp - 0xd0]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
call dword [ebp - 0xd0]
cmp esi, esp
call fcn.00784930
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xd8], eax
mov esi, esp
push 0
push 0
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], ecx
mov edi, esp
mov ecx, dword [ebp - 0xdc]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
call dword [ebp - 0xdc]
cmp esi, esp
call fcn.00784930
nop
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xe4], ecx
mov esi, esp
push 0
push 0
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0xe0]
push eax
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], ecx
mov edi, esp
mov ecx, dword [ebp - 0xe8]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
call dword [ebp - 0xe8]
cmp esi, esp
call fcn.00784930
test eax, eax
je 0x4f1efe
xor eax, eax
jmp 0x4f21c1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xf0], ecx
mov esi, esp
push 0
push 0
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0xec]
push ecx
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], edx
mov edi, esp
mov ecx, dword [ebp - 0xf4]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
call dword [ebp - 0xf4]
cmp esi, esp
call fcn.00784930
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xf8], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0xfc], edx
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0xf8]
push edx
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x100], eax
mov edi, esp
mov ecx, dword [ebp - 0x100]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
call dword [ebp - 0x100]
cmp esi, esp
call fcn.00784930
nop
mov eax, 1
jmp 0x4f21c1
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
jne 0x4f1fec
push 0x33b
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFColemisc.cpp
call fcn.004053b0
test eax, eax
je 0x4f1fec
int3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x4f2009
push 0x33c
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFColemisc.cpp
call fcn.004053b0
test eax, eax
je 0x4f2009
int3
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x108], ecx
mov esi, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], edx
mov edi, esp
mov ecx, dword [ebp - 0x10c]
call dword [0x7f5aac]
cmp edi, esp
call fcn.00784930
call dword [ebp - 0x10c]
cmp esi, esp
call fcn.00784930
test eax, eax
je 0x4f2075
xor eax, eax
jmp 0x4f21c1
mov eax, 1
jmp 0x4f21c1
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x4f209c
push 0x346
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFColemisc.cpp
call fcn.004053b0
test eax, eax
je 0x4f209c
int3
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 0
jne 0x4f20b9
push 0x347
push str.D:_a_work1_s_src_vctoolsVC7LibsShipATLMFCSrcMFColemisc.cpp
call fcn.004053b0
test eax, eax
je 0x4f20b9
int3
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
push edx
lea ecx, [ebp - 0x90]
call fcn.004c0d30
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.004c0d30
nop
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 0
je 0x4f2101
lea ecx, [ebp - 0x9c]
call fcn.0040b730
mov dword [ebp - 0x110], eax
jmp 0x4f210b
mov dword [ebp - 0x110], 0
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
je 0x4f2127
lea ecx, [ebp - 0x90]
call fcn.0040b730
mov dword [ebp - 0x114], eax
jmp 0x4f2131
mov dword [ebp - 0x114], 0
mov esi, esp
push 0
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp esi, esp
call fcn.00784930
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x9c]
call fcn.0040bc80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.0040bc80
mov eax, dword [ebp - 0xa4]
jmp 0x4f21c1
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x4f2188
xor eax, eax
jmp 0x4f21c1
mov esi, esp
push 0
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ole32.dll_OleDuplicateData]
cmp esi, esp
call fcn.00784930
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 0
jne 0x4f21b8
xor eax, eax
jmp 0x4f21c1
mov eax, 1
jmp 0x4f21c1
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4f21fc]
call fcn.007848d0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00783b00
add esp, 0x114
cmp ebp, esp
call fcn.00784930
mov esp, ebp
pop ebp
ret 0xc