Function at 0x408f7e
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46fb39
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4b2d60]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
push str.SetupArmUpdate...
lea ecx, [esp + 0x28]
call fcn.004012e2
xor esi, esi
push esi
lea eax, [esp + 0x28]
push eax
push 2
mov dword [esp + 0x54], esi
call fcn.00411806
or dword [esp + 0x54], 0xffffffff
mov ecx, dword [esp + 0x30]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
xor ebx, ebx
inc ebx
cmp byte [0x4b7c38], 0
mov dword [esp + 0x20], ebx
jne 0x409539
cmp byte [0x4b74e4], 0
jne 0x409539
mov edi, dword [ebp + 8]
lea eax, [edi + 0x534]
mov byte [0x4b7c38], bl
call fcn.00401d18
test eax, eax
je 0x409039
push str.back_from_arm_update__skipping
lea ecx, [esp + 0x28]
call fcn.004012e2
push 2
pop eax
push esi
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x50], eax
push eax
jmp 0x409553
lea ebx, [edi + 0x278]
mov ecx, ebx
call fcn.00417137
test eax, eax
jne 0x409052
xor eax, eax
inc eax
jmp 0x409569
push ebx
call fcn.0041b713
test eax, eax
jne 0x409079
push dword [0x4b7688]
lea ecx, [edi + 0x174]
call fcn.004074fe
test eax, eax
jne 0x40904a
push esi
call fcn.004078eb
jmp 0x40904a
mov dword [esp + 0x34], vtable.CManifest.0
mov dword [esp + 0x38], esi
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x4c], 3
call fcn.00422a6a
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
mov eax, ebx
call fcn.00408c01
mov ecx, eax
mov byte [esp + 0x48], 4
call fcn.00439902
mov byte [esp + 0x48], 3
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017df
push esi
lea eax, [esp + 0x28]
push eax
mov eax, ebx
call fcn.00408be6
push ecx
mov ecx, esp
mov byte [esp + 0x50], 5
mov dword [esp + 0x38], esp
push 0x479cac
push eax
push ecx
call fcn.00407458
add esp, 0xc
call fcn.00439771
pop ecx
pop ecx
mov byte [esp + 0x48], 3
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [esp + 0x1c], esi
je 0x409118
lea ecx, [esp + 0x34]
call fcn.0042229f
jmp 0x40904a
push str.Continue_without_dismissed_ARM_update
lea ecx, [esp + 0x1c]
call fcn.004012e2
mov byte [esp + 0x48], 6
mov ebx, dword [edi + 0x108]
cmp ebx, esi
jne 0x409154
xor esi, esi
inc esi
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [esp + 0x34]
call fcn.0042229f
mov eax, esi
jmp 0x409569
push dword [0x4b7688]
lea ecx, [edi + 0x174]
call fcn.004074fe
test eax, eax
jne 0x40916f
push esi
call fcn.004078eb
call fcn.0043f3c0
push eax
lea ecx, [esp + 0x18]
call fcn.004013a1
push str.WinARM
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 7
call fcn.004012e2
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x50], 8
call fcn.004119d0
pop ecx
pop ecx
mov byte [esp + 0x48], 7
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [0x4b7be0], 0x22344
je 0x4094d5
lea eax, [edi + 0x278]
push eax
call fcn.00418b4d
test eax, eax
je 0x4094d5
cmp dword [edi + 0xc0], esi
jne 0x409528
lea eax, [esp + 0x24]
push eax
lea eax, [edi + 0x278]
call fcn.00408be6
push esi
mov byte [esp + 0x4c], 0xa
call fcn.004510cb
pop ecx
push eax
call fcn.00451097
pop ecx
call fcn.004510a9
push eax
push dword [esp + 0x28]
lea ecx, [edi + 0xe4]
push str._s_d
push ecx
mov dword [esp + 0x2c], ecx
call fcn.004012c2
add esp, 0x10
cmp dword [ebx + 0x1c], 1
jne 0x409492
call fcn.0043f3c0
push eax
lea ecx, [esp + 0x34]
call fcn.004013a1
mov byte [esp + 0x48], 0xb
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
push esi
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40927c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_self_update_folder_failed
push edi
call fcn.0040840b
mov dword [esp + 0x10], eax
jmp 0x4093c0
mov esi, 0x479944
push esi
push dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
call fcn.00407458
add esp, 0xc
push 0x4b7684
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x54], 0xc
call fcn.00401025
mov eax, dword [eax]
mov ebx, dword [ebx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 0xc
push 0
push eax
push ebx
call edi
mov ecx, dword [esp + 0x1c]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004017df
mov byte [esp + 0x48], 0xb
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.004017df
test bl, bl
je 0x409302
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x479948
push dword [ebp + 8]
call fcn.0040840b
mov dword [esp + 0x10], eax
jmp 0x4093bb
call fcn.0043f3c0
push eax
lea ecx, [esp + 0x20]
call fcn.004013a1
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 0xd
call fcn.00435721
pop ecx
test eax, eax
jne 0x40932f
push 2
push str.Get_launcher_path_failed
jmp 0x40939e
mov eax, dword [ebp + 8]
add eax, 0xe4
push esi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00407458
add esp, 0xc
push 0x4b767c
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x54], 0xe
call fcn.00401025
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
push dword [esp + 0x24]
call edi
mov ecx, dword [esp + 0x28]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004017df
mov byte [esp + 0x48], 0xd
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.004017df
test bl, bl
je 0x4093aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Copy_launcher_failed
push dword [ebp + 8]
call fcn.0040840b
mov dword [esp + 0x10], eax
mov byte [esp + 0x48], 0xb
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004017df
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x4093ec
lea esi, [edi + 0x104]
call fcn.0043030a
mov dword [esp + 0x20], eax
test eax, eax
je 0x4093ea
push 0
lea eax, [esp + 0x1c]
push eax
push 2
call fcn.00411806
add esp, 0xc
xor esi, esi
mov byte [esp + 0x48], 0xa
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, 0x4771e4
cmp dword [esp + 0x20], esi
jne 0x40940d
mov eax, 0x478e3c
push eax
lea ecx, [esp + 0x14]
call fcn.004012e2
push str.SetupArmUpdate_returns
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 0x10
call fcn.004012e2
push esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
push 2
mov byte [esp + 0x58], 0x11
call fcn.00411336
mov ecx, dword [esp + 0x2c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [esp + 0x34]
call fcn.0042229f
mov eax, dword [esp + 0x20]
jmp 0x409569
push str.not_supported_self_update_type
lea ecx, [esp + 0x24]
call fcn.004012e2
push esi
lea eax, [esp + 0x24]
push eax
push 2
mov byte [esp + 0x54], 0xf
call fcn.00411806
mov byte [esp + 0x54], 0xa
mov ecx, dword [esp + 0x2c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea esi, [edi + 0x104]
call fcn.0043030a
mov esi, eax
jmp 0x409509
lea esi, [edi + 0x104]
call fcn.0043030a
mov esi, eax
test esi, esi
jne 0x409517
push str.DownloadArmUpdate_failed
lea ecx, [esp + 0x28]
call fcn.004012e2
push esi
lea eax, [esp + 0x28]
push eax
push 2
mov byte [esp + 0x54], 9
call fcn.00411806
add esp, 0xc
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004017df
jmp 0x409528
push 0
lea eax, [esp + 0x1c]
push eax
push 2
call fcn.00411806
add esp, 0xc
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004017df
jmp 0x409138
push str.skipping__already_executed
lea ecx, [esp + 0x28]
call fcn.004012e2
push esi
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x50], ebx
push 2
call fcn.00411806
mov ecx, dword [esp + 0x30]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov eax, ebx
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