Function at 0x423190
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5263ca
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x44]
sub ecx, dword [edi + 0x40]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str._Add_:__d.
push str.kupdate::KWpsUpdateImpl::HandleAdd
push 0x3e4
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 4
mov dword [ebp - 0x88], edi
call fcn.0041a9b0
mov esi, dword [edi + 0x40]
add esp, 0x18
mov dword [ebp - 0x84], esi
cmp esi, dword [edi + 0x44]
je 0x4233fc
lea ebx, [esi + 0x1c]
mov edi, 8
jmp 0x423226
mov esi, dword [ebp - 0x84]
cmp dword [ebx + 0x14], edi
jb 0x42322f
mov ecx, dword [ebx]
jmp 0x423231
mov ecx, ebx
cmp dword [ebx - 8], edi
jb 0x42323a
mov eax, dword [esi]
jmp 0x42323c
mov eax, esi
push ecx
push eax
push str.Add_file:_name___s__path___s.
push str.kupdate::KWpsUpdateImpl::HandleAdd
push 0x3e9
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 7
call fcn.0041a9b0
add esp, 0x1c
cmp dword [ebx - 8], edi
jb 0x423265
mov eax, dword [esi]
jmp 0x423267
mov eax, esi
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0041d2e0
add esp, 8
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebx + 0x14], edi
jb 0x423282
mov eax, dword [ebx]
jmp 0x423284
mov eax, ebx
push eax
lea edx, [ebp - 0x64]
push edx
call fcn.0041d2e0
add esp, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], edi
jb 0x42329c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041bc70
add esp, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x50], edi
jb 0x4232be
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b9008
add esp, 4
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x18], edi
jae 0x4232d9
lea eax, [ebp - 0x2c]
push eax
call fcn.0041cc80
mov esi, eax
add esp, 4
test esi, esi
js 0x42341c
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x4232f7
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0041c200
add esp, 8
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401fb0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x6c], edi
jb 0x42332b
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004b9008
add esp, 4
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], esi
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x18], edi
jae 0x423346
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x423351
lea eax, [ebp - 0x48]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp eax, esi
je 0x4234bb
test byte [0x594718], 1
jne 0x423391
or dword [0x594718], 1
mov ecx, 0x594640
mov byte [ebp - 4], 7
call fcn.0045e4d0
push 0x535490
call fcn.004b9fdc
add esp, 4
mov byte [ebp - 4], 3
push 1
push 0x53e744
mov ecx, 0x594684
call fcn.00402460
cmp dword [ebp - 0x18], edi
jb 0x4233b3
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], edi
jb 0x4233db
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b9008
add esp, 4
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
add eax, 0x38
add ebx, 0x38
mov dword [ebp - 0x84], eax
cmp eax, dword [ecx + 0x44]
jne 0x423220
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 - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 4
test byte [0x594718], 1
jne 0x42344b
or dword [0x594718], 1
mov ecx, 0x594640
mov byte [ebp - 4], 4
call fcn.0045e4d0
push 0x535490
call fcn.004b9fdc
add esp, 4
mov byte [ebp - 4], 3
push 1
push 0x53e740
mov ecx, 0x594684
call fcn.00402460
push esi
push str.Failed_to_create_dst_dir:_0x_08x.
push str.kupdate::KWpsUpdateImpl::HandleAdd
push 0x3f2
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 0
call fcn.0041a9b0
add esp, 0x18
cmp dword [ebp - 0x18], edi
jb 0x42348c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9008
add esp, 4
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], edi
jb 0x4234b1
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b9008
add esp, 4
mov eax, 1
jmp 0x4233fe
test byte [0x594718], 1
jne 0x4234ea
or dword [0x594718], 1
mov ecx, 0x594640
mov byte [ebp - 4], 6
call fcn.0045e4d0
push 0x535490
call fcn.004b9fdc
add esp, 4
mov byte [ebp - 4], 3
push 1
push 0x53e740
mov ecx, 0x594684
call fcn.00402460
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, esi
jle 0x42350f
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_to_add_file:_0x_08x.
push str.kupdate::KWpsUpdateImpl::HandleAdd
push 0x3fb
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push esi
call fcn.0041a9b0
add esp, 0x18
cmp dword [ebp - 0x18], edi
jb 0x42353e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9008
add esp, 4
mov dword [ebp - 0x1c], esi
jmp 0x423493