Function at 0x460022
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x75bd1b
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push esi
push edi
lea edi, [ebp - 0xd4]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x82be68]
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 0x46027e
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x45ffe7
push 0x2b9
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.004057f9
test eax, eax
je 0x45ffe7
int3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa4]
sub edx, 1
mov dword [ebp - 0xa4], edx
cmp dword [ebp - 0xa4], 0x3f
ja case.0x46001b.2
mov eax, dword [ebp - 0xa4]
movzx ecx, byte [eax + 0x4607c8]
jmp dword [ecx*4 + 0x4607ac]
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 0x46027e
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 - 0xa8], edx
mov edi, esp
mov ecx, dword [ebp - 0xa8]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
call dword [ebp - 0xa8]
cmp esi, esp
call fcn.00710bc0
mov eax, dword [ebp + 0xc]
mov dword [eax], 4
mov eax, 1
jmp 0x46071b
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 - 0xac], eax
mov edi, esp
mov ecx, dword [ebp - 0xac]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
call dword [ebp - 0xac]
cmp esi, esp
call fcn.00710bc0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 8
mov eax, 1
jmp 0x46071b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
push 0
call fcn.0045fe20
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x46010f
xor eax, eax
jmp 0x46071b
mov esi, esp
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, esp
call fcn.00710bc0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x46013f
push 0x2d6
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.004057f9
test eax, eax
je 0x46013f
int3
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.00710bc0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0
jne 0x460193
mov esi, esp
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, esp
call fcn.00710bc0
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, esp
call fcn.00710bc0
xor eax, eax
jmp 0x46071b
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, esp
call fcn.00710bc0
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 0x46071b
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x10
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], 0
jmp 0x46027e
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 0
jne 0x460200
push 0x2ee
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.004057f9
test eax, eax
je 0x460200
int3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x46020e
call fcn.0044f610
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
push edx
call fcn.00717bd0
add esp, 4
mov dword [ebp - 0x1c], eax
push 2
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
call fcn.0045fbb0
add esp, 8
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
cmp dword [ebp - 0x20], 0
jne 0x46024a
xor eax, eax
jmp 0x46071b
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 - 0x20]
push eax
call fcn.00430800
add esp, 0x10
mov eax, 1
jmp 0x46071b
xor eax, eax
jmp 0x46071b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp eax, dword [edx]
je 0x46029e
push 0x303
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.004057f9
test eax, eax
je 0x46029e
int3
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
sub ecx, 1
mov dword [ebp - 0xb0], ecx
cmp dword [ebp - 0xb0], 0x3f
ja case.0x4602d2.2
mov edx, dword [ebp - 0xb0]
movzx eax, byte [edx + 0x460820]
jmp dword [eax*4 + 0x460808]
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.0045fe20
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4602fc
xor eax, eax
jmp 0x46071b
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov dword [edx + 4], eax
mov eax, 1
jmp 0x46071b
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
jne 0x46032c
push 0x314
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.004057f9
test eax, eax
je 0x46032c
int3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x460349
push 0x315
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.004057f9
test eax, eax
je 0x460349
int3
mov esi, esp
push 1
lea edx, [ebp - 0x70]
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]
mov dword [ebp - 0xb4], edx
mov edi, esp
mov ecx, dword [ebp - 0xb4]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
call dword [ebp - 0xb4]
cmp esi, esp
call fcn.00710bc0
test eax, eax
je 0x460396
xor eax, eax
jmp 0x46071b
cmp dword [ebp - 0x70], 0
je 0x4603b0
push 0x31e
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.004057f9
test eax, eax
je 0x4603b0
int3
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov esi, esp
push 0
push 0
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x80]
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]
mov dword [ebp - 0xb8], edx
mov edi, esp
mov ecx, dword [ebp - 0xb8]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
call dword [ebp - 0xb8]
cmp esi, esp
call fcn.00710bc0
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x80]
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]
mov dword [ebp - 0xbc], ecx
mov edi, esp
mov ecx, dword [ebp - 0xbc]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
call dword [ebp - 0xbc]
cmp esi, esp
call fcn.00710bc0
mov esi, esp
push 0
push 0
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x68]
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]
mov dword [ebp - 0xc0], edx
mov edi, esp
mov ecx, dword [ebp - 0xc0]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
call dword [ebp - 0xc0]
cmp esi, esp
call fcn.00710bc0
test eax, eax
je 0x4604a8
xor eax, eax
jmp 0x46071b
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x80]
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]
mov dword [ebp - 0xc4], ecx
mov edi, esp
mov ecx, dword [ebp - 0xc4]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
call dword [ebp - 0xc4]
cmp esi, esp
call fcn.00710bc0
mov esi, esp
push 0
push 0
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x80]
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]
mov dword [ebp - 0xc8], eax
mov edi, esp
mov ecx, dword [ebp - 0xc8]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
call dword [ebp - 0xc8]
cmp esi, esp
call fcn.00710bc0
mov eax, 1
jmp 0x46071b
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
jne 0x46055f
push 0x335
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.004057f9
test eax, eax
je 0x46055f
int3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x46057c
push 0x336
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.004057f9
test eax, eax
je 0x46057c
int3
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 + 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]
mov dword [ebp - 0xcc], eax
mov edi, esp
mov ecx, dword [ebp - 0xcc]
call dword [0x770a74]
cmp edi, esp
call fcn.00710bc0
call dword [ebp - 0xcc]
cmp esi, esp
call fcn.00710bc0
test eax, eax
je 0x4605d0
xor eax, eax
jmp 0x46071b
mov eax, 1
jmp 0x46071b
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 0
jne 0x4605f7
push 0x340
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.004057f9
test eax, eax
je 0x4605f7
int3
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
jne 0x460614
push 0x341
push str.d:_agent_work3_s_src_vctools_vc7libs_ship_atlmfc_srcmfcolemisc.cpp
call fcn.004057f9
test eax, eax
je 0x460614
int3
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0045f030
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
lea ecx, [ebp - 0x98]
call fcn.0045f030
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x46065b
lea ecx, [ebp - 0x98]
call fcn.00406ca0
mov dword [ebp - 0xd0], eax
jmp 0x460665
mov dword [ebp - 0xd0], 0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 0
je 0x460681
lea ecx, [ebp - 0x8c]
call fcn.00406ca0
mov dword [ebp - 0xd4], eax
jmp 0x46068b
mov dword [ebp - 0xd4], 0
mov esi, esp
push 0
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp esi, esp
call fcn.00710bc0
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0x98]
call fcn.00406330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.00406330
mov eax, dword [ebp - 0xa0]
jmp 0x46071b
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
je 0x4606e2
xor eax, eax
jmp 0x46071b
mov esi, esp
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]
cmp esi, esp
call fcn.00710bc0
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
jne 0x460712
xor eax, eax
jmp 0x46071b
mov eax, 1
jmp 0x46071b
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x460758]
call fcn.00710b50
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.0070ffb0
add esp, 0xd4
cmp ebp, esp
call fcn.00710bc0
mov esp, ebp
pop ebp
ret 0xc