Function at 0x454892
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 0x3c], ecx
push edi
lea ecx, [ebp + 8]
call fcn.004258ef
lea ecx, [ebp + 8]
call fcn.004258d6
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
push eax
push str.MOUN__:__Drives0x_lX__WIM_DLL_ver7_ld_r_n
push 0x48aec0
call fcn.0040aa0e
xor edi, edi
add esp, 0x10
cmp dword [ebp - 0x30], edi
jge 0x4548ea
push str.WIM_DLL_ERR_r_n
push dword [ebp - 0x3c]
call fcn.0040aa0e
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x454f4c
push esi
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x48]
call fcn.00425dc3
lea ecx, [ebp + 8]
call fcn.00429ef2
mov esi, 0x4758e0
push esi
lea ecx, [ebp - 0x10]
call fcn.0042a183
push esi
lea ecx, [ebp - 0x2c]
call fcn.0042a183
push esi
lea ecx, [ebp - 0x34]
call fcn.0042a183
push esi
lea ecx, [ebp - 0xc]
call fcn.0042a183
push 6
lea eax, [ebp + 8]
push eax
push str.query
mov dword [ebp - 8], 0x80000000
mov byte [ebp - 0x11], 0
call fcn.0042c9b5
mov byte [ebp - 0x1d], al
push 2
lea eax, [ebp + 8]
push eax
push 0x47cbdc
call fcn.0042c9b5
mov ecx, dword [ebp + 8]
add esp, 0x18
mov byte [ebp - 0x35], al
jmp 0x45496f
cmp ax, 0x21
jne 0x454977
inc ecx
inc ecx
mov byte [ebp - 0x11], 1
mov dword [ebp + 8], ecx
mov ax, word [ecx]
cmp ax, di
jne 0x454960
push ebx
lea ecx, [ebp + 8]
call fcn.00429ef2
push 1
push 0x2c
pop ebx
mov eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x48]
call fcn.00443613
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0042e020
push dword [ebp - 0x10]
call fcn.0040a93c
push dword [ebp - 0x10]
call fcn.00412d51
mov esi, eax
mov ax, word [esi]
add esp, 0x14
cmp ax, 0x5c
mov dword [ebp - 0x28], esi
je 0x4549c7
cmp ax, 0x2f
mov byte [ebp - 1], 0
jne 0x4549cb
mov byte [ebp - 1], 1
cmp byte [ebp - 0x1d], 0
jne 0x454a27
cmp byte [ebp - 1], 0
je 0x454a27
push dword [ebp - 0x10]
call fcn.0046176a
mov edi, dword [ebp - 0x10]
and dword [ebp - 0x10], 0
mov esi, eax
pop ecx
lea eax, [esi + 3]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], edi
call fcn.00424699
mov eax, dword [ebp - 0x10]
mov ecx, eax
inc esi
push esi
mov dword [ebp - 0x28], ecx
mov word [ecx + 2], 0x3a
add ecx, 4
push edi
push ecx
mov word [eax], 0x20
call fcn.0040391f
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00424686
mov esi, dword [ebp - 0x28]
xor edi, edi
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x454a50
add dword [ebp + 8], 2
push 1
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00443613
push edi
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.0042df66
add esp, 0xc
push dword [ebp - 0x2c]
call fcn.00412d51
cmp byte [ebp - 0x1d], 0
pop ecx
mov dword [ebp - 0x24], eax
je 0x454c12
cmp dword [0x48afac], edi
jne 0x454a76
push 0x78
pop esi
jmp 0x454c1d
push 0x3d
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x454a8e
mov word [eax], di
inc eax
inc eax
mov dword [ebp - 0x18], eax
cmp word [esi], di
jne 0x454a9d
mov esi, 0x80070057
jmp 0x454c1d
push 0x100020
lea ecx, [ebp - 0x1c]
call fcn.00424576
push 0x20
lea ecx, [ebp - 8]
mov dword [ebp - 0x30], 0x100000
call fcn.0042465d
mov eax, dword [ebp - 8]
mov word [eax + 4], di
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
mov byte [ebp + 0xb], 0
call dword [0x48afac]
test eax, eax
jne 0x454aec
lea ecx, [ebp - 8]
call fcn.00424686
lea ecx, [ebp - 0x1c]
call fcn.00424686
jmp 0x454c1a
mov eax, dword [ebp - 0x30]
xor edx, edx
mov ecx, 0x418
div ecx
xor ebx, ebx
cmp eax, edi
mov dword [ebp - 0x4c], eax
jle 0x454c07
mov esi, dword [ebp - 0x1c]
add esi, 0x208
mov eax, dword [ebp - 0x24]
cmp word [eax], di
je 0x454b85
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x454b7d
cmp dword [ebp - 0x18], edi
mov byte [ebp + 0xb], 1
je 0x454b85
push dword [ebp - 0x18]
push 0x47cbd8
call fcn.004257d3
test al, al
pop ecx
pop ecx
je 0x454b85
mov eax, dword [ebp - 0x1c]
imul ebx, ebx, 0x418
cmp dword [ebx + eax + 0x414], edi
mov eax, 0x479068
jne 0x454b5a
mov eax, 0x476efc
mov ecx, dword [ebp - 0x3c]
push eax
push dword [ebp - 0x28]
call fcn.00428e1b
lea ecx, [ebp - 8]
call fcn.00424686
lea ecx, [ebp - 0x1c]
call fcn.00424686
xor esi, esi
jmp 0x454c1d
mov eax, dword [ebp - 0x24]
cmp word [eax], di
jne 0x454bf7
lea eax, [esi + 0x208]
mov ecx, dword [eax + 4]
neg ecx
sbb ecx, ecx
and ecx, 0x100
push ecx
push dword [eax]
lea eax, [ebp - 0xd4]
push str._r_n_lu_0x_lX__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 8]
call fcn.004246c0
lea eax, [esi - 0x208]
push eax
lea ecx, [ebp - 8]
call fcn.004246c0
push 0x47cbb4
lea ecx, [ebp - 8]
call fcn.004246c0
push esi
lea ecx, [ebp - 8]
call fcn.004246c0
push 0x475924
lea ecx, [ebp - 8]
call fcn.004246c0
cmp byte [ebp + 0xb], 0
jne 0x454c07
inc ebx
add esi, 0x418
cmp ebx, dword [ebp - 0x4c]
jl 0x454b0e
mov eax, dword [ebp - 8]
add eax, 4
jmp 0x454b5a
mov eax, dword [ebp - 0x24]
cmp word [eax], di
jne 0x454c4c
xor esi, esi
inc esi
lea ecx, [ebp - 0xc]
call fcn.00424686
lea ecx, [ebp - 0x34]
call fcn.00424686
lea ecx, [ebp - 0x2c]
call fcn.00424686
lea ecx, [ebp - 0x10]
call fcn.00424686
lea ecx, [ebp - 0x48]
call fcn.00424686
mov eax, esi
jmp 0x454f4a
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x454c9e
add dword [ebp + 8], 2
push ebx
lea eax, [ebp - 8]
push eax
push 1
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00443613
push eax
call fcn.0042e1ad
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], bx
jne 0x454c9e
add dword [ebp + 8], 2
push 1
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00443613
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0042df66
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], edi
call fcn.00412d51
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0042a1b7
lea ecx, [ebp + 8]
call fcn.00424686
cmp byte [ebp - 0x35], 0
mov dword [ebp + 8], edi
jne 0x454ea9
cmp word [esi], di
je 0x454ea9
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x2a
jne 0x454cff
push 0x105
lea ecx, [ebp - 0xc]
call fcn.00424699
mov eax, dword [ebp - 0xc]
mov word [eax], di
push dword [ebp - 0xc]
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
cmp dword [0x48afa4], edi
jne 0x454d37
lea ecx, [ebp - 0xc]
call fcn.00424686
lea ecx, [ebp - 0x34]
call fcn.00424686
lea ecx, [ebp - 0x2c]
call fcn.00424686
lea ecx, [ebp - 0x10]
call fcn.00424686
lea ecx, [ebp - 0x48]
call fcn.00424686
xor eax, eax
inc eax
jmp 0x454f4a
push dword [ebp - 0x24]
call fcn.0046132c
test eax, eax
pop ecx
jne 0x454d60
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.0042a183
push dword [ebp - 0x18]
call fcn.0041bcd7
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00424686
push dword [ebp - 0x24]
call fcn.0046132c
test eax, eax
pop ecx
je 0x454d07
cmp byte [ebp - 1], 0
jne 0x454d7e
push esi
call fcn.004614b5
test eax, eax
pop ecx
je 0x454d07
push 8
pop ecx
xor esi, esi
xor eax, eax
mov dword [ebp - 0x70], esi
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExW]
test eax, eax
je 0x454da5
test byte [ebp - 0x70], 1
jne 0x454db0
mov eax, dword [ebp - 0xc]
cmp word [eax], si
mov dword [ebp - 0x18], eax
jne 0x454db3
mov dword [ebp - 0x18], esi
cmp byte [ebp - 1], 0
mov dword [ebp - 0x1c], esi
je 0x454dd2
cmp dword [ebp - 0x30], esi
jne 0x454dc8
mov dword [ebp - 0x1c], 0x100
cmp byte [ebp - 0x11], 0
je 0x454dd2
or byte [ebp - 0x1b], 2
xor ebx, ebx
inc ebx
cmp byte [ebp - 1], 0
mov eax, ebx
je 0x454deb
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
call fcn.0044b30b
pop ecx
pop ecx
mov esi, dword [ebp - 8]
sar eax, 8
movzx edi, al
dec edi
cmp esi, 0x80000000
jne 0x454dff
mov esi, ebx
push dword [ebp - 0x28]
call fcn.004614b5
test eax, eax
pop ecx
je 0x454e5f
cmp dword [ebp - 0x30], 0
je 0x454e2c
test esi, esi
jge 0x454e18
mov esi, ebx
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call fcn.00426f12
add esp, 0x10
jmp 0x454e42
test esi, esi
jge 0x454e32
mov esi, ebx
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call dword [0x48afa4]
push eax
push dword [ebp - 0x18]
mov dword [ebp + 8], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push str.FOUND_WIM___s____mount_to___s____s___d_r_n
push dword [ebp - 0x3c]
call fcn.0040aa0e
add esp, 0x18
cmp byte [ebp - 1], 0
je 0x454e78
cmp byte [ebp - 0x11], 0
jne 0x454e78
mov eax, dword [ebp - 0x1c]
test ax, ax
je 0x454e78
call fcn.004261a2
test edi, edi
jl 0x454f1a
push edi
lea eax, [ebp - 0x138]
push str.PART_update__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
push 0
lea eax, [ebp - 0x130]
push eax
call fcn.00437e52
jmp 0x454f1a
cmp dword [0x48afa8], edi
je 0x454d07
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.0046132c
test eax, eax
pop ecx
je 0x454d07
cmp word [esi], di
jne 0x454ece
xor esi, esi
cmp word [ebx], di
mov ecx, ebx
jne 0x454ed7
xor ecx, ecx
mov eax, 0x80000000
cmp dword [ebp - 8], eax
jne 0x454ee4
mov dword [ebp - 8], edi
cmp dword [ebp - 0x30], edi
je 0x454efc
xor eax, eax
cmp dword [ebp - 8], edi
setne al
push eax
push ebx
call fcn.00427088
pop ecx
pop ecx
jmp 0x454f17
cmp dword [ebp - 8], eax
je 0x454f0b
cmp dword [ebp - 8], edi
je 0x454f0b
xor eax, eax
inc eax
jmp 0x454f0d
xor eax, eax
push eax
push edi
push esi
push ecx
call dword [0x48afa8]
mov dword [ebp + 8], eax
lea ecx, [ebp - 0xc]
call fcn.00424686
lea ecx, [ebp - 0x34]
call fcn.00424686
lea ecx, [ebp - 0x2c]
call fcn.00424686
lea ecx, [ebp - 0x10]
call fcn.00424686
lea ecx, [ebp - 0x48]
call fcn.00424686
xor eax, eax
cmp dword [ebp + 8], eax
sete al
pop ebx
pop esi
pop edi
leave
ret 8