Function at 0x4096c0
Capabilities:
Copy file

Disassembly:
sub esp, 0x300
push ebx
mov ebx, dword [esp + 0x30c]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strstr]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
je 0x409755
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x409755
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], ecx
je 0x409755
push 0x411068
push ebx
call ebp
add esp, 8
cmp eax, esi
jne 0x40972d
push 0x411064
push ebx
call ebp
add esp, 8
cmp eax, esi
je 0x409755
add eax, 2
lea edx, [esp + 0x78]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409736
lea eax, [esp + 0x78]
push 0x411060
push eax
call ebp
add esp, 8
mov byte [eax + 4], 0
jmp 0x409776
mov dword [esp + 0x2c], 1
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x78]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, 3
lea edi, [esp + 0x78]
push 0x208
mov byte [ecx + edx], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x41105c]
mov dword [edi - 1], eax
call sub.pluk.dll_HMALLOC
add esp, 4
cmp eax, esi
mov dword [esp + 0x24], eax
je 0x409e50
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
push 0x104
push ecx
lea edx, [esp + 0x80]
push 0xffffffffffffffff
push edx
push 1
push 0
call ebp
push 0x208
call sub.pluk.dll_HMALLOC
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x409de0
lea eax, [esp + 0x1d0]
lea ecx, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x409878
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x208
call sub.pluk.dll_HMALLOC
mov edx, dword [esp + 0x31c]
mov dword [esp + 0x14], eax
push edx
call fcn.00409e60
mov edx, ebx
lea ecx, [esp + 0x80]
add esp, 8
lea eax, [esp + 0x78]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40983d
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push ebx
push edx
mov byte [ecx + ebx - 1], 0x31
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x10]
push 0x104
push eax
push 0xffffffffffffffff
push ebx
push 1
push 0
call ebp
push 0x80
call sub.pluk.dll_HMALLOC
mov edi, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x4098a6
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x314]
push edi
push ecx
push edx
mov ecx, eax
call fcn.0040b270
mov esi, eax
jmp 0x4098a8
xor esi, esi
mov eax, dword [esi + 0x30]
mov dword [esp + 0x1c], esi
test eax, 0x2c0
je 0x4098be
mov eax, dword [esi + 0x34]
mov eax, dword [eax + 0x16]
jmp 0x4098e2
test ah, 8
je 0x4098cd
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx]
call dword [edx + 0x14]
jmp 0x4098e2
test ah, 0x90
je 0x409dd7
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 6]
call dword [sym.imp.pluk.dll_public:_char____thiscall_Variable::GetData_void_const]
test eax, eax
je 0x409dd7
test edi, edi
je 0x409909
push ebx
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call sub.pluk.dll_HFREE
add esp, 4
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x7e
call sub.pluk.dll_HMALLOC
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x30], edi
je 0x409dd7
mov eax, dword [esi + 0x30]
test eax, 0x2c0
je 0x409948
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx + 0x16]
jmp 0x40996c
test ah, 8
je 0x409957
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx]
call dword [edx + 0x14]
jmp 0x40996c
test ah, 0x90
je 0x40996a
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 6]
call dword [sym.imp.pluk.dll_public:_char____thiscall_Variable::GetData_void_const]
jmp 0x40996c
xor eax, eax
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x409970
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, dword [str..Application1]
dec edi
push 0x7e
mov dword [edi], ecx
mov edx, dword [0x411a44]
mov dword [edi + 4], edx
mov eax, dword [0x411a48]
mov dword [edi + 8], eax
mov cx, word [0x411a4c]
mov word [edi + 0xc], cx
call sub.pluk.dll_HMALLOC
mov edi, eax
mov eax, dword [esi + 0x30]
add esp, 4
mov dword [esp + 0x10], edi
test eax, 0x2c0
je 0x4099c8
mov edx, dword [esi + 0x34]
mov eax, dword [edx + 0x16]
jmp 0x4099ec
test ah, 8
je 0x4099d7
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x4099ec
test ah, 0x90
je 0x4099ea
mov ecx, dword [esi + 0x34]
mov ecx, dword [ecx + 6]
call dword [sym.imp.pluk.dll_public:_char____thiscall_Variable::GetData_void_const]
jmp 0x4099ec
xor eax, eax
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x4099f0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [str..Application]
dec edi
mov dword [edi], edx
mov eax, dword [0x411a34]
mov dword [edi + 4], eax
mov ecx, dword [0x411a38]
mov eax, dword [esp + 0x2c]
mov dword [edi + 8], ecx
mov dl, byte [0x411a3c]
or ecx, 0xffffffff
test eax, eax
mov byte [edi + 0xc], dl
je 0x409a5c
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [str.__Automation]
dec edi
mov dword [edi], eax
mov ecx, dword [0x411a24]
mov dword [edi + 4], ecx
mov edx, dword [0x411a28]
mov dword [edi + 8], edx
mov al, byte [0x411a2c]
mov byte [edi + 0xc], al
jmp 0x409b1b
mov edi, dword [esp + 0x318]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea eax, [esi + 1]
test eax, eax
jne 0x409a77
push 4
jmp 0x409a78
push eax
call sub.pluk.dll_HMALLOC
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x409db1
mov eax, dword [esp + 0x318]
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x409a95
push str._register
push ebp
call dword [sym.imp.MSVCRT.dll_strstr]
mov ecx, eax
lea edx, [esi - 9]
sub ecx, ebp
add esp, 8
cmp ecx, edx
jne 0x409abe
mov byte [eax], 0
jmp 0x409ad9
mov edx, esi
sub edx, ecx
lea ecx, [eax + 9]
sub edx, 9
push edx
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov byte [esi + ebp - 9], 0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dx, word [0x411558]
repne scasb al, byte es:[edi]
or ecx, 0xffffffff
push ebp
mov word [edi - 1], dx
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.pluk.dll_HFREE
add esp, 4
mov ecx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ole32.dll_StringFromCLSID]
lea eax, [esp + 0x14]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.MSVCRT.dll_wcstombs]
push 0x40
lea eax, [esp + 0x3c]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x800
call sub.pluk.dll_HMALLOC
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x409db1
mov edx, dword [esp + 0x20]
mov eax, str.CLSID_
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x409b73
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
add ecx, 0x20
push ecx
call ebp
mov edx, dword [esp + 0x14]
push 0x40
lea eax, [esp + 0x194]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x100
call sub.pluk.dll_HMALLOC
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x409db1
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x30]
test ecx, 0x2c0
je 0x409c04
mov edx, dword [eax + 0x34]
mov eax, dword [edx + 0x16]
jmp 0x409c2a
test ch, 8
je 0x409c15
mov eax, dword [eax + 0x34]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
jmp 0x409c2a
test ch, 0x90
je 0x409c28
mov eax, dword [eax + 0x34]
mov ecx, dword [eax + 6]
call dword [sym.imp.pluk.dll_public:_char____thiscall_Variable::GetData_void_const]
jmp 0x409c2a
xor eax, eax
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x409c2e
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov esi, str._1.0_Pluk_COM_Server
repne scasb al, byte es:[edi]
dec edi
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
push eax
push ebx
push eax
push esi
call fcn.00409500
add esp, 0x10
test eax, eax
je 0x409da0
mov ebp, dword [esp + 0x10]
push 0
push ebp
push str.ProgID
push esi
call fcn.00409500
add esp, 0x10
test eax, eax
je 0x409da0
mov edi, dword [esp + 0x30]
push 0
push edi
push str.VersionIndependentProgID
push esi
call fcn.00409500
add esp, 0x10
test eax, eax
je 0x409da0
mov ecx, dword [esp + 0x28]
push 0
push ecx
push str.LocalServer32
push esi
call fcn.00409500
add esp, 0x10
test eax, eax
je 0x409da0
lea edx, [esp + 0x190]
push 0
push edx
push str.TypeLib
push esi
call fcn.00409500
add esp, 0x10
test eax, eax
je 0x409da0
push 0
push 0x4120b0
push str.Programmable
push esi
call fcn.00409500
add esp, 0x10
test eax, eax
je 0x409da0
push 0
push ebx
push 0
push edi
call fcn.00409500
add esp, 0x10
test eax, eax
je 0x409da0
lea eax, [esp + 0x38]
push 0
push eax
push str.CLSID
push edi
call fcn.00409500
add esp, 0x10
test eax, eax
je 0x409da0
push 0
push ebp
push str.CurVer
push edi
call fcn.00409500
add esp, 0x10
test eax, eax
je 0x409da0
push 0
push ebx
push 0
push ebp
call fcn.00409500
add esp, 0x10
test eax, eax
je 0x409da0
lea ecx, [esp + 0x38]
push 0
push ecx
push str.CLSID
push ebp
call fcn.00409500
add esp, 0x10
test eax, eax
je 0x409da0
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x34]
push edx
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
test eax, eax
jl 0x409da8
mov eax, dword [esp + 0x34]
push 0
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_QueryPathOfRegTypeLib]
mov eax, dword [esp + 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x409da8
mov dword [esp + 0x18], 0
push ebx
call sub.pluk.dll_HFREE
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409dc2
push eax
call sub.pluk.dll_HFREE
add esp, 4
mov edx, dword [esp + 0x30]
push edx
call sub.pluk.dll_HFREE
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
add esp, 4
push ebx
call sub.pluk.dll_HFREE
add esp, 4
mov eax, dword [esp + 0x24]
push eax
call sub.pluk.dll_HFREE
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x409dfe
push eax
call sub.pluk.dll_HFREE
add esp, 4
test esi, esi
je 0x409e50
mov eax, dword [esi + 0x58]
mov edi, dword [sym.imp.pluk.dll_private:_void___thiscall_Variable::_Clear_void_]
lea ecx, [esi + 0x58]
cmp eax, 0x20
jg 0x409e1b
mov dword [ecx], 0
jmp 0x409e1d
call edi
mov eax, dword [esi + 0x44]
lea ecx, [esi + 0x44]
cmp eax, 0x20
jg 0x409e30
mov dword [ecx], 0
jmp 0x409e32
call edi
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x30]
cmp eax, 0x20
jg 0x409e45
mov dword [ecx], 0
jmp 0x409e47
call edi
push esi
call sub.pluk.dll_HFREE
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x300
ret