Function at 0x407feb
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44e7e5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x47bd50]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push str.Cleanup...
lea ecx, [esp + 0x18]
call fcn.00402148
xor esi, esi
push esi
lea eax, [esp + 0x18]
push eax
push 2
mov dword [esp + 0x3c], esi
call fcn.0040e1e3
or dword [esp + 0x3c], 0xffffffff
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
mov eax, edi
call fcn.00406790
cmp dword [edi + 0xbc], esi
jne 0x4082aa
lea esi, [edi + 0xcc]
call fcn.00421f20
lea eax, [esp + 0x14]
lea ebx, [edi + 0x564]
push eax
mov eax, ebx
call fcn.004051a8
mov esi, eax
mov dword [esp + 0x30], 1
call fcn.00421f20
or dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025ca
lea eax, [esp + 0x14]
push eax
mov eax, ebx
call fcn.004051c3
mov esi, eax
mov dword [esp + 0x30], 2
call fcn.00421f20
or dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025ca
mov eax, dword [edi + 0x4a8]
test eax, eax
je 0x408140
lea esi, [eax + 8]
call fcn.00421f20
lea eax, [esp + 0x18]
push eax
mov eax, ebx
call fcn.00401000
push 0x480400
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x3c], 3
call fcn.00401e2d
add esp, 0xc
mov byte [esp + 0x30], 5
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025ca
lea esi, [esp + 0x14]
call fcn.00421f20
push ecx
lea eax, [edi + 0xd4]
mov dword [esp + 0x24], esp
mov ecx, esp
push eax
call fcn.0040218c
call fcn.00421db9
or dword [esp + 0x34], 0xffffffff
pop ecx
jmp 0x40826d
push str._ArmUpdateExe
lea esi, [edi + 0x654]
xor ecx, ecx
call fcn.00408543
or ebx, 0xffffffff
cmp eax, ebx
je 0x408279
lea esi, [edi + 0xd4]
push esi
lea eax, [edi + 0x650]
push eax
call fcn.00410479
push 0x4576a8
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004085d4
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025ca
cmp dword [esp + 0x14], 0
je 0x4081bc
push ecx
mov dword [esp + 0x1c], esp
mov ecx, esp
push esi
call fcn.0040218c
call fcn.00421db9
pop ecx
push 0x5c
mov ecx, esi
call fcn.00408574
cmp eax, ebx
je 0x408279
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00408596
push str.ARM.msi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x3c], 6
call fcn.004085d4
add esp, 0xc
mov esi, eax
mov byte [esp + 0x30], 7
call fcn.00421f20
mov byte [esp + 0x30], 6
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004025ca
push 0x457b3c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004085d4
add esp, 0xc
push 0x480400
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x3c], 8
call fcn.00401e2d
add esp, 0xc
mov esi, eax
mov byte [esp + 0x30], 9
call fcn.00421f20
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004025ca
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025ca
xor ebx, ebx
cmp dword [edi + 0x55c], ebx
je 0x4082aa
add edi, 0x4ac
cmp dword [edi + 8], ebx
jle 0x4082aa
push ebx
mov ecx, edi
call fcn.00408718
mov eax, dword [eax]
test eax, eax
je 0x4082a4
lea esi, [eax + 8]
call fcn.00421f20
inc ebx
cmp ebx, dword [edi + 8]
jl 0x40828e
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret