Function at 0x426bd0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5019f1
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x567e00]
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 + 0x58]
sub ecx, dword [ebx + 0x54]
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 0x74e
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 4
call fcn.00412230
mov esi, dword [ebx + 0x54]
add esp, 0x18
cmp esi, dword [ebx + 0x58]
je 0x426ec1
mov ecx, dword [0x56d69c]
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 0x426c62
mov ecx, dword [edi]
cmp dword [edi - 4], 8
mov eax, esi
jb 0x426c6c
mov eax, dword [esi]
push ecx
push eax
push str.Add_file:_name___s__path___s.
push str.kupdate::KWpsUpdateImpl::HandleAdd
push 0x753
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 7
call fcn.00412230
add esp, 0x1c
mov eax, esi
cmp dword [edi - 4], 8
jb 0x426c96
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004182e0
add esp, 8
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], 0
jb 0x426cb4
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004182e0
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x426ccd
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00417670
add esp, 8
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x426d18
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426d0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426fc1
push edx
push ecx
call fcn.004c6f6f
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.00415150
mov ebx, eax
add esp, 4
test ebx, ebx
js 0x426f16
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004162e0
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 4
jb 0x426d71
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004038f0
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x426db9
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426daf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426fc1
push edx
push ecx
call fcn.004c6f6f
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 0x426ee1
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
mov eax, dword [0x56c68c]
cmp eax, dword [ecx + 4]
jg 0x426fdb
push 1
push 0x517ccc
mov ecx, 0x56c614
call fcn.00403a70
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x426e5a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426e50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426fc1
push edx
push ecx
call fcn.004c6f6f
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 0x426eaf
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426ea5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426fc1
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, dword [ebp - 0x78]
add esi, 0x30
add edi, 0x30
cmp esi, dword [eax + 0x58]
jne 0x426c58
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.004c6f8b
mov esp, ebp
pop ebp
ret 4
call fcn.0042ccb0
push 1
push 0x517cdc
lea ecx, [eax + 0x3c]
call fcn.00403a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x426f0a
movzx ebx, bx
or ebx, 0x80070000
mov eax, 0x765
mov ecx, str.Failed_to_add_file:_0x_08x.
jmp 0x426f34
call fcn.0042ccb0
push 1
push 0x517cdc
lea ecx, [eax + 0x3c]
call fcn.00403a70
mov eax, 0x75c
mov ecx, str.Failed_to_create_dst_dir:_0x_08x.
push ebx
push ecx
push str.kupdate::KWpsUpdateImpl::HandleAdd
push eax
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 0
call fcn.00412230
mov edx, dword [ebp - 0x14]
add esp, 0x18
cmp edx, 8
jb 0x426f81
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426f77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426fc1
push edx
push ecx
call fcn.004c6f6f
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 0x426fd1
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426fc7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x426fc7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, 1
jmp 0x426ec3
push 0x56c68c
call fcn.004c7345
add esp, 4
cmp dword [0x56c68c], 0xffffffff
jne 0x426e0b
mov ecx, 0x56c5d8
mov byte [ebp - 4], 5
call fcn.004904a0
push 0x511620
call fcn.004c71fd
push 0x56c68c
mov byte [ebp - 4], 3
call fcn.004c72fb
add esp, 8
jmp 0x426e0b