Function at 0x4037e7
Capabilities:
Copy file

Disassembly:
jmp 0x40dc90
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x4b5f8d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4e72c0]
xor eax, ebp
mov dword [ebp + 0x78], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x88]
lea ecx, [ebp - 0xc]
mov ebx, dword [ebp + 0x84]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov esi, eax
mov dword [ebp - 0x14], str.DingSyncShellExtension_x86.dll
mov dword [ebp - 0x10], str.DingSyncShellExtension_x64.dll
mov dword [ebp - 0x28], eax
cmp eax, ecx
je 0x40e05e
mov eax, dword [esi]
sub esp, 8
mov edx, esp
mov dword [edx], eax
test eax, eax
je 0x40dd0c
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dd03
sub eax, edi
mov dword [edx + 4], eax
mov ecx, ebx
lea eax, [ebp + 0x18]
push eax
call fcn.004031b1
mov ecx, dword [esi]
sub esp, 8
mov dword [ebp - 4], 0
mov edi, esp
mov dword [edi], ecx
test ecx, ecx
je 0x40dd3a
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dd31
sub ecx, edx
lea eax, [ebp + 0x30]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x18]
push eax
call fcn.004031b1
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 0x18]
call fcn.00401910
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 0x30]
call fcn.00401910
cmp dword [ebp + 0x74], 8
lea ecx, [ebp + 0x60]
push 0
cmovae ecx, dword [ebp + 0x60]
lea eax, [ebp + 0x48]
cmp dword [ebp + 0x5c], 8
push ecx
cmovae eax, dword [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp + 0x74]
test eax, eax
je 0x40dfc4
cmp edx, 8
jb 0x40ddcb
mov ecx, dword [ebp + 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ddc1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e037
push edx
push ecx
call fcn.0040182a
add esp, 8
mov edx, dword [ebp + 0x5c]
xor eax, eax
mov dword [ebp + 0x70], 0
mov dword [ebp + 0x74], 7
mov word [ebp + 0x60], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x40de1d
mov ecx, dword [ebp + 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40de13
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e037
push edx
push ecx
call fcn.0040182a
add esp, 8
movq xmm0, qword [str.regsvr32.exe]
mov eax, dword [0x4cae98]
mov dword [ebp + 0x74], 0xf
mov dword [ebp + 0x70], 0xc
movq qword [ebp + 0x60], xmm0
mov dword [ebp + 0x68], eax
mov byte [ebp + 0x6c], 0
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp]
push eax
call fcn.00402fc2
add esp, 8
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00401fe6
lea ecx, [ebp]
call fcn.00401ec9
mov edx, dword [ebp + 0x74]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x40dea5
mov ecx, dword [ebp + 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40de9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e037
push edx
push ecx
call fcn.0040182a
add esp, 8
mov dword [ebp + 0x70], 0
mov dword [ebp + 0x74], 0xf
mov byte [ebp + 0x60], 0
call fcn.00403fa8
push str.debug
mov ecx, eax
call fcn.004042eb
test al, al
jne 0x40df36
mov dword [ebp + 0x48], 0
mov eax, 0x732f
mov dword [ebp + 0x5c], 0xf
mov dword [ebp + 0x58], 2
mov word [ebp + 0x48], ax
mov byte [ebp + 0x4a], 0
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x48]
call fcn.004035b2
mov edx, dword [ebp + 0x5c]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x40df36
mov ecx, dword [ebp + 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40df2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e037
push edx
push ecx
call fcn.0040182a
add esp, 8
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401316
lea ecx, [ebp - 0x70]
call fcn.00401d5c
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 0x70], 1
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401b95
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00403689
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
mov bl, al
call fcn.004010cd
lea ecx, [ebp - 0x70]
call fcn.00404854
lea ecx, [ebp - 0x48]
call fcn.00405245
test bl, bl
je 0x40e047
lea ecx, [ebp + 0x30]
call fcn.00401ec9
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00401ec9
add esi, 4
lea eax, [ebp - 0xc]
cmp esi, eax
je 0x40e05e
mov ebx, dword [ebp - 0x1c]
jmp 0x40dcf3
cmp edx, 8
jb 0x40dff7
mov ecx, dword [ebp + 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dfed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e037
push edx
push ecx
call fcn.0040182a
add esp, 8
mov edx, dword [ebp + 0x5c]
xor eax, eax
mov dword [ebp + 0x70], 0
mov dword [ebp + 0x74], 7
mov word [ebp + 0x60], ax
cmp edx, 8
jb 0x40e047
mov ecx, dword [ebp + 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e03d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e03d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040182a
add esp, 8
lea ecx, [ebp + 0x30]
call fcn.00401ec9
lea ecx, [ebp + 0x18]
call fcn.00401ec9
mov eax, 1
jmp 0x40e060
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x78]
xor ecx, ebp
call fcn.0040282e
lea esp, [ebp + 0x7c]
pop ebp
ret