Function at 0x605b30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x76d07a
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x86dc84]
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 0x605d9b
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x605b83
push 0x2b9
push 0x7a963c
call fcn.0052630c
test eax, eax
je 0x605b83
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.0x605bb7.2
mov eax, dword [ebp - 0x84]
movzx ecx, byte [eax + 0x606130]
jmp dword [ecx*4 + 0x606114]
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 0x605d9b
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 0x6060f6
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 0x6060f6
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
push 0
call fcn.00526eab
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x605c5b
xor eax, eax
jmp 0x6060f6
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 0x605c82
push 0x2d6
push 0x7a9674
call fcn.0052630c
test eax, eax
je 0x605c82
int3
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_CopyMetaFileW]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
jne 0x605cbb
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 0x6060f6
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 0x6060f6
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x10
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], 0
jmp 0x605d9b
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 0
jne 0x605d1f
push 0x2ee
push 0x7a96ac
call fcn.0052630c
test eax, eax
je 0x605d1f
int3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x605d2d
call fcn.005241e2
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.005243b3
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 0x605d67
xor eax, eax
jmp 0x6060f6
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.00527c61
add esp, 0x10
mov eax, 1
jmp 0x6060f6
xor eax, eax
jmp 0x6060f6
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp eax, dword [edx]
je 0x605dbb
push 0x303
push 0x7a96e4
call fcn.0052630c
test eax, eax
je 0x605dbb
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.0x605def.2
mov edx, dword [ebp - 0x88]
movzx eax, byte [edx + 0x606188]
jmp dword [eax*4 + 0x606170]
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.00526eab
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x605e19
xor eax, eax
jmp 0x6060f6
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov eax, 1
jmp 0x6060f6
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
jne 0x605e49
push 0x314
push 0x7a971c
call fcn.0052630c
test eax, eax
je 0x605e49
int3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x605e66
push 0x315
push 0x7a9754
call fcn.0052630c
test eax, eax
je 0x605e66
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 0x605e8b
xor eax, eax
jmp 0x6060f6
cmp dword [ebp - 0x6c], 0
je 0x605ea5
push 0x31e
push 0x7a978c
call fcn.0052630c
test eax, eax
je 0x605ea5
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 0x605f25
xor eax, eax
jmp 0x6060f6
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 0x6060f6
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
jne 0x605f8c
push 0x335
push 0x7a97c4
call fcn.0052630c
test eax, eax
je 0x605f8c
int3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
jne 0x605fa9
push 0x336
push 0x7a97fc
call fcn.0052630c
test eax, eax
je 0x605fa9
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 0x605fd5
xor eax, eax
jmp 0x6060f6
mov eax, 1
jmp 0x6060f6
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 0
jne 0x605ffc
push 0x340
push 0x7a9834
call fcn.0052630c
test eax, eax
je 0x605ffc
int3
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
jne 0x606019
push 0x341
push 0x7a986c
call fcn.0052630c
test eax, eax
je 0x606019
int3
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x78]
call fcn.00529377
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
lea ecx, [ebp - 0x7c]
call fcn.00529377
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x606057
lea ecx, [ebp - 0x7c]
call fcn.00527f7c
mov dword [ebp - 0x8c], eax
jmp 0x606061
mov dword [ebp - 0x8c], 0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 0
je 0x60607a
lea ecx, [ebp - 0x78]
call fcn.00527f7c
mov dword [ebp - 0x90], eax
jmp 0x606084
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_CopyFileW]
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x7c]
call fcn.005257e5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.005257e5
mov eax, dword [ebp - 0x80]
jmp 0x6060f6
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
je 0x6060c6
xor eax, eax
jmp 0x6060f6
push 0
mov dx, 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 0x6060ed
xor eax, eax
jmp 0x6060f6
mov eax, 1
jmp 0x6060f6
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.005287fb
mov esp, ebp
pop ebp
ret 0xc