Function at 0x426570
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4deecc
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x53d9f8]
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 ebx, dword [ebp + 8]
mov eax, 0x2aaaaaab
mov dword [ebp - 0x78], ebx
mov ecx, dword [ebx + 0x40]
sub ecx, dword [ebx + 0x3c]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str._KWpsUpdateImpl::Add_:__d.
push str.kupdate::KWpsUpdateImpl::HandleAdd
push 0x74a
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 4
call fcn.00412750
mov esi, dword [ebx + 0x3c]
add esp, 0x18
cmp esi, dword [ebx + 0x40]
je 0x426862
mov ecx, dword [0x5421c0]
lea edi, [esi + 0x18]
mov eax, dword fs:[0x2c]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x74], eax
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x426602
mov ecx, dword [edi]
cmp dword [edi - 4], 8
mov eax, esi
jb 0x42660c
mov eax, dword [esi]
push ecx
push eax
push str.Add_file:_name___s__path___s.
push str.kupdate::KWpsUpdateImpl::HandleAdd
push 0x74f
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 7
call fcn.00412750
add esp, 0x1c
mov eax, esi
cmp dword [edi - 4], 8
jb 0x426636
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00417f60
add esp, 8
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], 0
jb 0x426654
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00417f60
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x42666d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00417450
add esp, 8
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x4266b8
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4266ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426962
push edx
push ecx
call fcn.004bee2d
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x44], 7
call fcn.00414f10
mov ebx, eax
add esp, 4
test ebx, ebx
js 0x4268b7
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00416070
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 4
jb 0x426710
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403230
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x42675a
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426750
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426962
push edx
push ecx
call fcn.004bee2d
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push 0
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
mov dword [ebp - 0x5c], 7
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x426882
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
mov eax, dword [0x54119c]
cmp eax, dword [ecx + 4]
jg 0x42697c
push 1
push 0x4f1b84
mov ecx, 0x541124
call fcn.004033b0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4267fb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4267f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426962
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x426850
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426846
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426962
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov eax, dword [ebp - 0x78]
add esi, 0x30
add edi, 0x30
cmp esi, dword [eax + 0x40]
jne 0x4265f8
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.004bee49
mov esp, ebp
pop ebp
ret 4
call fcn.0042c390
push 1
push 0x4f1b94
lea ecx, [eax + 0x3c]
call fcn.004033b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4268ab
movzx ebx, bx
or ebx, 0x80070000
mov eax, 0x761
mov ecx, str.Failed_to_add_file:_0x_08x.
jmp 0x4268d5
call fcn.0042c390
push 1
push 0x4f1b94
lea ecx, [eax + 0x3c]
call fcn.004033b0
mov eax, 0x758
mov ecx, str.Failed_to_create_dst_dir:_0x_08x.
push ebx
push ecx
push str.kupdate::KWpsUpdateImpl::HandleAdd
push eax
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 0
call fcn.00412750
mov edx, dword [ebp - 0x14]
add esp, 0x18
cmp edx, 8
jb 0x426922
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426918
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426962
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x426972
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426968
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x426968
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov eax, 1
jmp 0x426864
push 0x54119c
call fcn.004bf206
add esp, 4
cmp dword [0x54119c], 0xffffffff
jne 0x4267ac
mov ecx, 0x5410e8
mov byte [ebp - 4], 5
call fcn.0048d070
push 0x4ec090
call fcn.004bf0be
push 0x54119c
mov byte [ebp - 4], 3
call fcn.004bf1bc
add esp, 8
jmp 0x4267ac