Function at 0x404c33
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x6790c0]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x404ced
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x404ad5
push 0x2b9
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.00429610
test eax, eax
je 0x404ad5
int3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
sub edx, 1
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x84], 0x3f
ja case.0x404b09.2
mov eax, dword [ebp - 0x84]
movzx ecx, byte [eax + 0x405080]
jmp dword [ecx*4 + 0x405064]
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 0x404ced
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]
push eax
mov edx, dword [ecx + 4]
call edx
mov eax, dword [ebp + 0xc]
mov dword [eax], 4
mov eax, 1
jmp 0x405048
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]
push ecx
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 8
mov eax, 1
jmp 0x405048
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
push 0
call fcn.00404980
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x404bad
xor eax, eax
jmp 0x405048
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x404bd4
push 0x2d6
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.00429610
test eax, eax
je 0x404bd4
int3
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_CopyMetaFileA]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
jne 0x404c0d
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x405048
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
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 0x405048
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x10
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], 0
jmp 0x404ced
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 0
jne 0x404c71
push 0x2ee
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.00429610
test eax, eax
je 0x404c71
int3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x404c7f
call fcn.00403e50
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x1c], eax
push 2
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
call fcn.00405310
add esp, 8
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 4], edx
cmp dword [ebp - 0x18], 0
jne 0x404cb9
xor eax, eax
jmp 0x405048
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + ecx + 2]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00402310
add esp, 0x10
mov eax, 1
jmp 0x405048
xor eax, eax
jmp 0x405048
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp eax, dword [edx]
je 0x404d0d
push 0x303
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.00429610
test eax, eax
je 0x404d0d
int3
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
sub ecx, 1
mov dword [ebp - 0x88], ecx
cmp dword [ebp - 0x88], 0x3f
ja case.0x404d41.2
mov edx, dword [ebp - 0x88]
movzx eax, byte [edx + 0x4050d8]
jmp dword [eax*4 + 0x4050c0]
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.00404980
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x404d6b
xor eax, eax
jmp 0x405048
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov eax, 1
jmp 0x405048
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
jne 0x404d9b
push 0x314
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.00429610
test eax, eax
je 0x404d9b
int3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x404db8
push 0x315
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.00429610
test eax, eax
je 0x404db8
int3
push 1
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [ecx]
push eax
mov edx, dword [ecx + 0x30]
call edx
test eax, eax
je 0x404ddd
xor eax, eax
jmp 0x405048
cmp dword [ebp - 0x6c], 0
je 0x404df7
push 0x31e
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.00429610
test eax, eax
je 0x404df7
int3
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
push 0
push 0
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x74]
push 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]
push eax
mov edx, dword [ecx + 0x14]
call edx
push 0
push 0
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 0x14]
call ecx
push 0
push 0
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [ecx]
push eax
mov edx, dword [ecx + 0x1c]
call edx
test eax, eax
je 0x404e77
xor eax, eax
jmp 0x405048
push 0
push 0
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 0x14]
call ecx
push 0
push 0
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 0x14]
call eax
mov eax, 1
jmp 0x405048
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
jne 0x404ede
push 0x335
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.00429610
test eax, eax
je 0x404ede
int3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x404efb
push 0x336
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.00429610
test eax, eax
je 0x404efb
int3
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
je 0x404f27
xor eax, eax
jmp 0x405048
mov eax, 1
jmp 0x405048
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 0
jne 0x404f4e
push 0x340
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.00429610
test eax, eax
je 0x404f4e
int3
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
jne 0x404f6b
push 0x341
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.00429610
test eax, eax
je 0x404f6b
int3
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x78]
call fcn.00405850
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
lea ecx, [ebp - 0x7c]
call fcn.00405850
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x404fa9
lea ecx, [ebp - 0x7c]
call fcn.00401d70
mov dword [ebp - 0x8c], eax
jmp 0x404fb3
mov dword [ebp - 0x8c], 0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 0
je 0x404fcc
lea ecx, [ebp - 0x78]
call fcn.00401d70
mov dword [ebp - 0x90], eax
jmp 0x404fd6
mov dword [ebp - 0x90], 0
push 0
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x7c]
call fcn.00401620
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00401620
mov eax, dword [ebp - 0x80]
jmp 0x405048
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
je 0x405018
xor eax, eax
jmp 0x405048
push 0
movzx edx, word [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ole32.dll_OleDuplicateData]
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
jne 0x40503f
xor eax, eax
jmp 0x405048
mov eax, 1
jmp 0x405048
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.005d84a0
mov esp, ebp
pop ebp
ret 0xc