Function at 0x407a7e
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x464aab
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4a1d50]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
push str.SetupArmUpdate...
lea ecx, [esp + 0x28]
call fcn.0040130b
xor ebx, ebx
push ebx
lea eax, [esp + 0x28]
push eax
push 2
pop esi
push esi
mov dword [esp + 0x54], ebx
call fcn.0040fcf3
or dword [esp + 0x54], 0xffffffff
mov ecx, dword [esp + 0x30]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov dword [esp + 0x24], 1
cmp byte [0x4a6409], bl
jne 0x407fad
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1ac], ebx
jne 0x407fad
lea eax, [edi + 0x4d8]
mov byte [0x4a6409], 1
call fcn.00401c93
test eax, eax
je 0x407b4f
push str.back_from_arm_update__skipping
lea ecx, [esp + 0x28]
call fcn.0040130b
push ebx
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x54], esi
call fcn.0040fcf3
mov ecx, dword [esp + 0x30]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
xor eax, eax
inc eax
jmp 0x407fdf
lea esi, [edi + 0x22c]
mov ecx, esi
call fcn.004149fd
test eax, eax
je 0x407b47
push esi
call fcn.00417f10
test eax, eax
jne 0x407b87
push dword [0x4a65c0]
lea ecx, [edi + 0x178]
call fcn.00406240
test eax, eax
jne 0x407b47
push ebx
call fcn.004064ce
jmp 0x407b47
mov dword [esp + 0x34], vtable.CManifest.0
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x4c], 3
call fcn.0041ef9b
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
mov eax, esi
call fcn.00407881
mov esi, eax
mov byte [esp + 0x48], 4
call fcn.00433778
mov byte [esp + 0x48], 3
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [esp + 0x1c], ebx
je 0x407be6
lea ecx, [esp + 0x34]
call fcn.0041e719
jmp 0x407b47
push str.Continue_without_dismissed_ARM_update
lea ecx, [esp + 0x1c]
call fcn.0040130b
mov byte [esp + 0x48], 5
mov esi, dword [edi + 0x104]
cmp esi, ebx
jne 0x407c22
xor ebx, ebx
inc ebx
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [esp + 0x34]
call fcn.0041e719
mov eax, ebx
jmp 0x407fdf
push dword [0x4a65c0]
lea ecx, [edi + 0x178]
call fcn.00406240
test eax, eax
jne 0x407c3d
push ebx
call fcn.004064ce
cmp dword [0x4a6ab4], 0x22344
je 0x407f54
lea ecx, [edi + 0x22c]
call fcn.00415b3c
test eax, eax
je 0x407f54
cmp dword [edi + 0xc0], ebx
jne 0x407c06
lea eax, [esp + 0x20]
push eax
lea eax, [edi + 0x22c]
call fcn.00407866
push ebx
mov byte [esp + 0x4c], 7
call fcn.0044841b
pop ecx
push eax
call fcn.004483e7
pop ecx
call fcn.004483f9
push eax
push dword [esp + 0x24]
lea ecx, [edi + 0xe0]
push str._s_d
push ecx
mov dword [esp + 0x2c], ecx
call fcn.004012d7
mov eax, dword [esi + 0x1c]
add esp, 0x10
cmp eax, 3
jne 0x407d07
push str.7z_type_self_update_is_not_supported
lea ecx, [esp + 0x28]
call fcn.0040130b
push ebx
lea eax, [esp + 0x28]
push eax
push 2
mov byte [esp + 0x54], 8
call fcn.0040fcf3
mov byte [esp + 0x54], 7
mov ecx, dword [esp + 0x30]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
lea esi, [edi + 0x100]
call fcn.0042b3c0
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004017c4
jmp 0x407c06
cmp eax, 1
jne 0x407ecf
call fcn.004366fe
push eax
lea ecx, [esp + 0x34]
call fcn.00411d53
mov byte [esp + 0x48], 0xe
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
push ebx
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407d4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_self_update_folder_failed
mov ebx, edi
jmp 0x407dc1
mov edi, 0x46de14
push edi
push dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
call fcn.004061c9
add esp, 0xc
push 0x4a65bc
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x54], 0xf
call fcn.00401025
mov eax, dword [eax]
mov esi, dword [esi + 8]
add esp, 0xc
push ebx
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
call esi
mov ecx, dword [esp + 0x1c]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004017c4
mov byte [esp + 0x48], 0xe
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.004017c4
test bl, bl
je 0x407dcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 8]
push eax
push 0x46de18
call fcn.00406fbe
mov dword [esp + 0x14], eax
jmp 0x407e88
call fcn.004366fe
push eax
lea ecx, [esp + 0x20]
call fcn.00411d53
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 0x10
call fcn.0042fd55
pop ecx
test eax, eax
jne 0x407dfc
push 2
push str.Get_launcher_path_failed
jmp 0x407e6b
mov eax, dword [ebp + 8]
add eax, 0xe0
push edi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004061c9
add esp, 0xc
push 0x4a65b4
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x54], 0x11
call fcn.00401025
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
push dword [esp + 0x24]
call esi
mov ecx, dword [esp + 0x28]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004017c4
mov byte [esp + 0x48], 0x10
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.004017c4
test bl, bl
je 0x407e77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Copy_launcher_failed
mov ebx, dword [ebp + 8]
call fcn.00406fbe
mov dword [esp + 0x14], eax
mov byte [esp + 0x48], 0xe
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017c4
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x407eb6
mov esi, dword [ebp + 8]
add esi, 0x100
call fcn.0042b3c0
mov dword [esp + 0x24], eax
cmp eax, edi
je 0x407eb6
push edi
lea eax, [esp + 0x1c]
push eax
push 2
call fcn.0040fcf3
add esp, 0xc
mov byte [esp + 0x48], 7
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004017c4
xor ebx, ebx
cmp dword [esp + 0x24], edi
je 0x407ed6
mov eax, 0x46bd84
jmp 0x407edb
mov eax, 0x46c978
push eax
lea ecx, [esp + 0x18]
call fcn.0040130b
push str.SetupArmUpdate_returns
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 0x12
call fcn.0040130b
push ebx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push 2
mov byte [esp + 0x58], 0x13
call fcn.0040f821
mov ecx, dword [esp + 0x2c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [esp + 0x34]
call fcn.0041e719
mov eax, dword [esp + 0x24]
jmp 0x407fdf
lea esi, [edi + 0x100]
call fcn.0042b3c0
mov esi, eax
cmp esi, ebx
jne 0x407f96
push str.DownloadArmUpdate_failed
lea ecx, [esp + 0x28]
call fcn.0040130b
push ebx
lea eax, [esp + 0x28]
push eax
push 2
mov byte [esp + 0x54], 6
call fcn.0040fcf3
mov ecx, dword [esp + 0x30]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
jmp 0x407fa6
push ebx
lea eax, [esp + 0x1c]
push eax
push 2
call fcn.0040fcf3
add esp, 0xc
mov ebx, esi
jmp 0x407c06
push str.skipping__already_executed
lea ecx, [esp + 0x28]
call fcn.0040130b
push ebx
lea eax, [esp + 0x28]
xor edi, edi
push eax
inc edi
push esi
mov dword [esp + 0x54], edi
call fcn.0040fcf3
mov ecx, dword [esp + 0x30]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4