Function at 0x40b524
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa8c
mov eax, 0x4b9424
call fcn.004a40b4
mov dword [ebp - 0x2c], 2
lea edx, [ebp + 0x10]
lea eax, [ebp + 0x10]
call fcn.004b2b54
inc dword [ebp - 0x2c]
mov word [ebp - 0x38], 0xc
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004b2b54
inc dword [ebp - 0x2c]
mov ecx, dword [sym.ArmouryUpdate.exe__fmMain]
mov dl, 1
mov eax, dword [0x48964c]
call fcn.0048dfcc
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x38], 0x18
mov edx, str.DeviceDriver
lea eax, [ebp - 4]
call fcn.004b2b14
inc dword [ebp - 0x2c]
push dword [eax]
push dword [0x4c1a28]
lea eax, [ebp - 8]
call fcn.00402770
push eax
inc dword [ebp - 0x2c]
call fcn.00402598
add esp, 0xc
lea eax, [ebp - 8]
call fcn.004027a0
push eax
lea edx, [ebp - 0x268]
push edx
call fcn.004a3fe8
add esp, 8
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b2c24
dec dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b2c24
push 0
lea ecx, [ebp - 0x268]
push ecx
call sub.KERNEL32.DLL_CreateDirectoryW
lea eax, [ebp + 0xc]
call fcn.004027a0
push eax
lea edx, [ebp - 0x268]
push edx
call fcn.004a4028
add esp, 8
lea ecx, [ebp - 0x268]
push ecx
lea eax, [ebp - 0x470]
push eax
call fcn.004a3fe8
add esp, 8
push str..raw
lea edx, [ebp - 0x268]
push edx
call fcn.004a4028
add esp, 8
push str..fbk
lea ecx, [ebp - 0x470]
push ecx
call fcn.004a4028
add esp, 8
mov word [ebp - 0x38], 0x24
lea edx, [ebp - 0x268]
lea eax, [ebp - 0xc]
call fcn.004b2bc0
inc dword [ebp - 0x2c]
mov eax, dword [eax]
call fcn.0042a2ec
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b2c24
pop ecx
test cl, cl
je 0x40b68f
lea eax, [ebp - 0x268]
push eax
call sub.KERNEL32.DLL_DeleteFileW
lea edx, [ebp - 0x470]
push edx
call sub.KERNEL32.DLL_DeleteFileW
push 0x4b8a98
lea ecx, [ebp - 0x268]
push ecx
call fcn.004a8adc
add esp, 8
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x40b6e5
push dword [ebp + 0xc]
push 0x4b8a9c
push dword [ebp - 0x58]
call fcn.004a5fa8
add esp, 0xc
push dword [ebp + 0x10]
push str._zip_path___s___zip_path__n_n
push dword [ebp - 0x58]
call fcn.004a5fa8
add esp, 0xc
push dword [ebp + 0xc]
push str.__product_
push dword [ebp - 0x58]
call fcn.004a5fa8
add esp, 0xc
push dword [ebp - 0x58]
call fcn.004a5bd8
pop ecx
mov word [ebp - 0x38], 0x30
lea edx, [ebp - 0x268]
lea eax, [ebp - 0x10]
call fcn.004b2bc0
inc dword [ebp - 0x2c]
mov eax, dword [eax]
call fcn.0042a2ec
push eax
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004b2c24
pop ecx
test cl, cl
je 0x40b85e
mov word [ebp - 0x38], 0x48
lea eax, [ebp - 0x1c]
call fcn.00402770
mov edx, eax
inc dword [ebp - 0x2c]
mov eax, dword [0x4c1700]
mov eax, dword [eax]
call fcn.0046b638
lea edx, [ebp - 0x1c]
push dword [edx]
lea eax, [ebp - 0x20]
call fcn.00402770
mov edx, eax
inc dword [ebp - 0x2c]
pop eax
call fcn.0042a4ac
lea eax, [ebp - 0x20]
call fcn.004027a0
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.004b2bc0
inc dword [ebp - 0x2c]
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004b2c24
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004b2c24
mov word [ebp - 0x38], 0x3c
mov word [ebp - 0x38], 0x54
lea eax, [ebp - 0x18]
call fcn.00402770
push eax
inc dword [ebp - 0x2c]
mov edx, str.AsusLiveUpdateDeEncrypt.dll
lea eax, [ebp - 0x24]
call fcn.004b2bc0
inc dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x14]
pop ecx
call fcn.004b2c74
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004b2c24
mov word [ebp - 0x38], 0x3c
lea eax, [ebp - 0x18]
call fcn.004027a0
push eax
call sub.KERNEL32.DLL_LoadLibraryW
mov dword [ebp - 0x5c], eax
push 0
push 0
push 0x100
lea edx, [ebp - 0x574]
push edx
push 0xffffffffffffffff
lea ecx, [ebp - 0x268]
push ecx
push 0
push 0
call sub.KERNEL32.DLL_WideCharToMultiByte
cmp dword [ebp - 0x5c], 0
je 0x40b830
push str.EncryptAsusLiveUpdateFile
push dword [ebp - 0x5c]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x574]
push eax
call dword [ebp - 0x60]
pop ecx
push dword [ebp - 0x5c]
call sub.KERNEL32.DLL_FreeLibrary
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004b2c24
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b2c24
mov word [ebp - 0x38], 0xc
dec dword [ebp - 0x2c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004b2c24
dec dword [ebp - 0x2c]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.004b2c24
mov ecx, dword [ebp - 0x48]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp