Function at 0x42de40
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463dc6
mov eax, dword fs:[0]
push eax
sub esp, 0x58c
mov eax, dword [0x4775a8]
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, 0xf
xor esi, esi
mov dword [ebp - 0x594], ebx
mov dword [ebp - 0x560], eax
mov dword [ebp - 0x564], esi
mov byte [ebp - 0x574], 0
push 0x13
push str.utl_LoadCusIniFile:
lea ecx, [ebp - 0x590]
mov dword [ebp - 4], esi
mov dword [ebp - 0x57c], eax
mov dword [ebp - 0x580], esi
mov byte [ebp - 0x590], 0
call fcn.00407c70
xor eax, eax
push 0x104
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
mov byte [ebp - 0x348], al
lea eax, [ebp - 0x347]
push esi
push eax
mov byte [ebp - 4], 1
mov byte [ebp - 0x30], 0
call fcn.0043cdb0
push 0x104
lea ecx, [ebp - 0x44f]
push esi
push ecx
mov byte [ebp - 0x450], 0
call fcn.0043cdb0
add esp, 0x18
call fcn.0042cad0
mov edi, eax
mov dword [ebp - 0x598], edi
cmp edi, esi
jne 0x42dfde
mov edx, dword [ebp - 0x590]
mov edi, 0x10
cmp dword [ebp - 0x57c], edi
jae 0x42df41
lea edx, [ebp - 0x590]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42df46
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x574]
call fcn.00407c70
push 0x22
push str._utl_GetCommonProgramFiles_failed_
lea ecx, [ebp - 0x574]
call fcn.00412db0
mov eax, dword [ebp - 0x574]
cmp dword [ebp - 0x560], edi
jae 0x42df82
lea eax, [ebp - 0x574]
push 0
push eax
push ebx
call fcn.004269e0
add esp, 0xc
cmp dword [ebp - 0x57c], edi
jb 0x42dfa5
mov edx, dword [ebp - 0x590]
push edx
call fcn.0043c161
add esp, 4
mov dword [ebp - 0x57c], 0xf
mov dword [ebp - 0x580], 0
mov byte [ebp - 0x590], 0
cmp dword [ebp - 0x560], edi
jb 0x42dfd7
mov eax, dword [ebp - 0x574]
push eax
call fcn.0043c161
add esp, 4
xor eax, eax
jmp 0x42e85a
push str.iNodeSecure_Client_reginfo
push edi
lea ecx, [ebp - 0x348]
push 0x4685c4
push ecx
call fcn.0043ce2a
lea edx, [ebp - 0x348]
push edx
call fcn.004328e0
add esp, 0x14
test eax, eax
jne 0x42e14d
push 0x104
mov byte [ebp - 0x240], al
lea eax, [ebp - 0x23f]
push esi
push eax
call fcn.0043cdb0
lea ecx, [ebp - 0x348]
push ecx
lea edx, [ebp - 0x240]
push 0x46a058
push edx
call fcn.0043ce2a
add esp, 0x18
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
test eax, eax
jne 0x42e14d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
push 0x468800
push ecx
call fcn.0043ce2a
mov edx, dword [ebp - 0x590]
mov edi, 0x10
add esp, 0xc
cmp dword [ebp - 0x57c], edi
jae 0x42e085
lea edx, [ebp - 0x590]
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e090
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x574]
call fcn.00407c70
push 0x2e
push str.Create_directory__reginfo__failed_with_ErrNo:
lea ecx, [ebp - 0x574]
call fcn.00412db0
lea eax, [ebp - 0x30]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e0c0
sub eax, edx
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x574]
call fcn.00412db0
mov eax, dword [ebp - 0x574]
cmp dword [ebp - 0x560], edi
jae 0x42e0ed
lea eax, [ebp - 0x574]
push 0
push eax
push ebx
call fcn.004269e0
add esp, 0xc
cmp dword [ebp - 0x57c], edi
jb 0x42e110
mov eax, dword [ebp - 0x590]
push eax
call fcn.0043c161
add esp, 4
mov dword [ebp - 0x57c], 0xf
mov dword [ebp - 0x580], 0
mov byte [ebp - 0x590], 0
cmp dword [ebp - 0x560], edi
jb 0x42dfd7
mov ecx, dword [ebp - 0x574]
push ecx
call fcn.0043c161
add esp, 4
xor eax, eax
jmp 0x42e85a
lea edx, [ebp - 0x348]
push 0
push edx
call fcn.0042ab40
add esp, 8
mov ebx, 0x10
test eax, eax
jne 0x42e80c
mov edx, dword [ebp - 0x590]
cmp dword [ebp - 0x57c], ebx
jae 0x42e17f
lea edx, [ebp - 0x590]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e184
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x574]
call fcn.00407c70
push 0x24
push str.CusIniVerify_new_failed_try_for_old.
lea ecx, [ebp - 0x574]
call fcn.00412db0
mov eax, dword [ebp - 0x574]
cmp dword [ebp - 0x560], ebx
jae 0x42e1c0
lea eax, [ebp - 0x574]
push 0
push eax
mov eax, dword [ebp - 0x594]
push eax
call fcn.004269e0
push str.Huawei_3ComSecure_Client_reginfo
push edi
lea ecx, [ebp - 0x450]
push 0x4685c4
push ecx
call fcn.0043ce2a
lea edx, [ebp - 0x450]
push 0
push edx
call fcn.0042ab40
mov edx, dword [ebp - 0x590]
add esp, 0x24
test eax, eax
jne 0x42e2ba
cmp dword [ebp - 0x57c], ebx
jae 0x42e213
lea edx, [ebp - 0x590]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e218
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x574]
call fcn.00407c70
push 0x25
push str.CusIniVerify_old_failed_return_false.
lea ecx, [ebp - 0x574]
call fcn.00412db0
mov eax, dword [ebp - 0x574]
cmp dword [ebp - 0x560], ebx
jae 0x42e254
lea eax, [ebp - 0x574]
push 0
push eax
mov eax, dword [ebp - 0x594]
push eax
call fcn.004269e0
add esp, 0xc
cmp dword [ebp - 0x57c], ebx
jb 0x42e27d
mov ecx, dword [ebp - 0x590]
push ecx
call fcn.0043c161
add esp, 4
mov dword [ebp - 0x57c], 0xf
mov dword [ebp - 0x580], 0
mov byte [ebp - 0x590], 0
cmp dword [ebp - 0x560], ebx
jb 0x42dfd7
mov edx, dword [ebp - 0x574]
push edx
call fcn.0043c161
add esp, 4
xor eax, eax
jmp 0x42e85a
cmp dword [ebp - 0x57c], ebx
jae 0x42e2c8
lea edx, [ebp - 0x590]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e2d0
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x574]
call fcn.00407c70
push 0x24
push str.CusIniVerify_old_true_so_copy_files.
lea ecx, [ebp - 0x574]
call fcn.00412db0
mov eax, dword [ebp - 0x574]
cmp dword [ebp - 0x560], ebx
jae 0x42e30c
lea eax, [ebp - 0x574]
push 0
push eax
mov eax, dword [ebp - 0x594]
push eax
call fcn.004269e0
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax - 0x450]
mov byte [ebp + eax - 0x240], cl
inc eax
test cl, cl
jne 0x42e320
lea edi, [ebp - 0x138]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e340
mov cx, word [0x46875c]
lea eax, [ebp - 0x240]
mov word [edi], cx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42e360
mov edx, dword [str.iNodeCustom.ini]
mov esi, dword [0x469dcc]
mov ebx, dword [0x469dd0]
mov ecx, dword [0x469dd4]
mov dword [eax], edx
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
xor eax, eax
lea ecx, [ecx]
mov cl, byte [ebp + eax - 0x348]
mov byte [ebp + eax - 0x138], cl
inc eax
test cl, cl
jne 0x42e390
lea edi, [ebp - 0x138]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e3b0
mov ax, word [0x46875c]
mov word [edi], ax
lea eax, [ebp - 0x138]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42e3c8
mov ecx, dword [0x469dd4]
mov dword [eax], edx
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
push 0
lea edx, [ebp - 0x138]
mov dword [eax + 0xc], ecx
push edx
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42e48b
mov edx, dword [ebp - 0x590]
mov edi, 0x10
cmp dword [ebp - 0x57c], edi
jae 0x42e418
lea edx, [ebp - 0x590]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e420
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x574]
call fcn.00407c70
push 0x26
push str.CopyFile_iNodeCustom.ini_return_false_
lea ecx, [ebp - 0x574]
call fcn.00412db0
cmp dword [ebp - 0x560], edi
mov eax, dword [ebp - 0x574]
jae 0x42e45c
lea eax, [ebp - 0x574]
mov ecx, dword [ebp - 0x594]
push 0
push eax
push ecx
call fcn.004269e0
add esp, 0xc
lea ecx, [ebp - 0x590]
call fcn.00407790
lea ecx, [ebp - 0x574]
call fcn.00407790
xor eax, eax
jmp 0x42e85a
xor eax, eax
lea ecx, [ecx]
mov cl, byte [ebp + eax - 0x450]
mov byte [ebp + eax - 0x240], cl
inc eax
test cl, cl
jne 0x42e490
lea edi, [ebp - 0x138]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e4b0
mov dx, word [0x46875c]
lea eax, [ebp - 0x240]
mov word [edi], dx
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42e4d0
mov edx, dword [str.iNodeCustom.vrf]
mov esi, dword [0x469ddc]
mov ebx, dword [0x469de0]
mov ecx, dword [0x469de4]
mov dword [eax], edx
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
xor eax, eax
lea ecx, [ecx]
mov cl, byte [ebp + eax - 0x348]
mov byte [ebp + eax - 0x138], cl
inc eax
test cl, cl
jne 0x42e500
lea edi, [ebp - 0x138]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e520
mov ax, word [0x46875c]
mov word [edi], ax
lea eax, [ebp - 0x138]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42e538
mov ecx, dword [0x469de4]
mov dword [eax], edx
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
push 0
lea edx, [ebp - 0x138]
mov dword [eax + 0xc], ecx
push edx
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42e5ad
mov eax, dword [ebp - 0x590]
mov esi, 0x10
cmp dword [ebp - 0x57c], esi
jae 0x42e584
lea eax, [ebp - 0x590]
push eax
lea ecx, [ebp - 0x574]
call fcn.004077c0
push 0x26
push str.CopyFile_iNodeCustom.vrf_return_false_
lea ecx, [ebp - 0x574]
call fcn.00412db0
cmp dword [ebp - 0x560], esi
jmp 0x42e44e
xor eax, eax
nop
mov cl, byte [ebp + eax - 0x450]
mov byte [ebp + eax - 0x240], cl
inc eax
test cl, cl
jne 0x42e5b0
lea edi, [ebp - 0x138]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e5d0
mov dx, word [0x46875c]
mov word [edi], dx
lea edi, [ebp - 0x240]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e5f0
mov ecx, 5
mov esi, str.iNodeUninstallInfo.ini
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x348]
mov byte [ebp + eax - 0x138], cl
inc eax
test cl, cl
jne 0x42e610
lea edi, [ebp - 0x138]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e630
mov word [edi], dx
lea edi, [ebp - 0x138]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e642
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, 5
mov esi, str.iNodeUninstallInfo.ini
rep movsd dword es:[edi], dword [esi]
push 0
movsw word es:[edi], word [esi]
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x240]
push eax
movsb byte es:[edi], byte [esi]
call ebx
test eax, eax
jne 0x42e6b7
mov eax, dword [ebp - 0x590]
mov esi, 0x10
cmp dword [ebp - 0x57c], esi
jae 0x42e68e
lea eax, [ebp - 0x590]
push eax
lea ecx, [ebp - 0x574]
call fcn.004077c0
push 0x2d
push str.CopyFile_iNodeUninstallInfo.ini_return_false_
lea ecx, [ebp - 0x574]
call fcn.00412db0
cmp dword [ebp - 0x560], esi
jmp 0x42e44e
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x450]
mov byte [ebp + eax - 0x240], cl
inc eax
test cl, cl
jne 0x42e6c0
lea edi, [ebp - 0x138]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e6e0
mov dx, word [0x46875c]
mov word [edi], dx
lea edi, [ebp - 0x240]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e700
mov ecx, 5
mov esi, str.iNodeUninstallInfo.vrf
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x348]
mov byte [ebp + eax - 0x138], cl
inc eax
test cl, cl
jne 0x42e720
lea edi, [ebp - 0x138]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e740
mov word [edi], dx
lea edi, [ebp - 0x138]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42e752
mov ecx, 5
mov esi, str.iNodeUninstallInfo.vrf
rep movsd dword es:[edi], dword [esi]
push 0
movsw word es:[edi], word [esi]
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x240]
push eax
movsb byte es:[edi], byte [esi]
call ebx
test eax, eax
jne 0x42e7c1
mov eax, dword [ebp - 0x590]
mov esi, 0x10
cmp dword [ebp - 0x57c], esi
jae 0x42e798
lea eax, [ebp - 0x590]
push eax
lea ecx, [ebp - 0x574]
call fcn.004077c0
push 0x2d
push str.CopyFile_iNodeUninstallInfo.vrf_return_false_
lea ecx, [ebp - 0x574]
call fcn.00412db0
cmp dword [ebp - 0x560], esi
jmp 0x42e44e
push 0x104
lea edx, [ebp - 0x557]
push 0
push edx
mov byte [ebp - 0x558], 0
call fcn.0043cdb0
mov eax, dword [ebp - 0x598]
push str.Huawei_3Com
push eax
lea ecx, [ebp - 0x558]
push 0x4685c4
push ecx
call fcn.0043ce2a
lea edx, [ebp - 0x558]
push edx
call fcn.00432e30
add esp, 0x20
mov ebx, 0x10
cmp dword [ebp - 0x57c], ebx
jb 0x42e823
mov eax, dword [ebp - 0x590]
push eax
call fcn.0043c161
add esp, 4
mov dword [ebp - 0x57c], 0xf
mov dword [ebp - 0x580], 0
mov byte [ebp - 0x590], 0
cmp dword [ebp - 0x560], ebx
jb 0x42e855
mov ecx, dword [ebp - 0x574]
push ecx
call fcn.0043c161
add esp, 4
mov eax, 1
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.0043bde4
mov esp, ebp
pop ebp
ret