Function at 0x412a9b
Capabilities:
Copy file

Disassembly:
push 0x80
mov eax, 0x4b876d
call fcn.00495a70
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
sub eax, dword [esi + 0x40]
push 0x38
pop ecx
cdq
idiv ecx
push eax
push str._Add_:__d.
push str.kupdate::KWpsNotifyImpl::HandleAdd
push 0x39e
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_notifyKWpsNotifyImpl.cpp
push 4
call fcn.004030c6
mov eax, dword [esi + 0x40]
add esp, 0x18
mov dword [ebp - 0x84], eax
cmp eax, dword [esi + 0x44]
je 0x412c65
lea ebx, [eax + 0x1c]
mov dword [ebp - 0x88], ebx
xor edi, edi
jmp 0x412b03
mov ebx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x84]
cmp dword [ebx + 0x14], 8
jb 0x412b0d
mov ecx, dword [ebx]
jmp 0x412b0f
mov ecx, ebx
cmp dword [ebx - 8], 8
jb 0x412b17
mov eax, dword [eax]
push ecx
push eax
push str.Add_file:_name___s__path___s.
push str.kupdate::KWpsNotifyImpl::HandleAdd
push 0x3a3
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_notifyKWpsNotifyImpl.cpp
push 7
call fcn.004030c6
mov eax, dword [ebp - 0x84]
add esp, 0x1c
cmp dword [ebx - 8], 8
jb 0x412b45
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0044e901
pop ecx
pop ecx
cmp dword [ebx + 0x14], 8
mov dword [ebp - 4], edi
jb 0x412b5c
mov ebx, dword [ebx]
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0044e901
pop ecx
pop ecx
push 8
pop ebx
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], ebx
jb 0x412b76
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0044d925
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.00401129
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x412b9c
lea eax, [ebp - 0x2c]
push eax
call fcn.0044e508
pop ecx
mov dword [ebp - 0x8c], eax
cmp eax, edi
jl 0x412c6f
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x412bbc
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0044dd54
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004012c8
push edi
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00401129
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x412bf2
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x412bfd
lea eax, [ebp - 0x48]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp eax, edi
je 0x412cca
call fcn.0041069b
push 0x4c5880
mov ebx, eax
call fcn.00495461
pop ecx
push eax
push 0x4c5880
lea ecx, [ebx + 0x44]
call fcn.00402570
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401129
add dword [ebp - 0x84], 0x38
mov eax, dword [ebp - 0x84]
add dword [ebp - 0x88], 0x38
cmp eax, dword [esi + 0x44]
jne 0x412af7
xor eax, eax
call fcn.00495af3
ret 4
call fcn.0041069b
mov esi, 0x4c587c
push esi
mov ebx, eax
call fcn.00495461
pop ecx
push eax
push esi
lea ecx, [ebx + 0x44]
call fcn.00402570
push dword [ebp - 0x8c]
push str.Failed_to_create_dst_dir:_0x_08x.
push str.kupdate::KWpsNotifyImpl::HandleAdd
push 0x3ac
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_notifyKWpsNotifyImpl.cpp
push edi
call fcn.004030c6
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401129
xor eax, eax
inc eax
jmp 0x412c67
call fcn.0041069b
mov esi, 0x4c587c
push esi
mov ebx, eax
call fcn.00495461
pop ecx
push eax
push esi
lea ecx, [ebx + 0x44]
call fcn.00402570
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, edi
jle 0x412cfb
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_to_add_file:_0x_08x.
push str.kupdate::KWpsNotifyImpl::HandleAdd
push 0x3b5
jmp 0x412ca1