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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push esi
lea eax, [ebp + 8]
mov esi, ecx
push eax
mov dword [ebp - 0x30], esi
call fcn.0042609c
push 3
push dword [ebp + 8]
push str._udm
call fcn.00426f79
add esp, 0x10
test al, al
je 0x45a25c
lea eax, [ebp + 8]
push eax
call fcn.00403b20
pop ecx
push 0xffffffffffffffff
push str.22:INDATA_mount
lea ecx, [ebp - 0x30]
call fcn.0042605a
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.0042af26
push dword [ebp - 0x30]
mov ecx, esi
call fcn.0041e8ce
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.0042602e
mov eax, esi
jmp 0x45a900
push edi
lea ecx, [ebp + 8]
call fcn.0042707c
lea ecx, [ebp + 8]
call fcn.00427063
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
push str.MOUN__:__Drives0x_lX__WIM_DLL_ver7_ld_r_n
push 0x48feb8
call fcn.0040b047
xor edi, edi
add esp, 0x10
cmp dword [ebp - 0x34], edi
jge 0x45a2a6
push str.WIM_DLL_ERR_r_n
push esi
call fcn.0040b047
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x45a8ff
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c9fa
mov esi, 0x47a8e8
push esi
lea ecx, [ebp - 0x10]
call fcn.00434695
push esi
lea ecx, [ebp - 0x2c]
call fcn.00434695
push esi
lea ecx, [ebp - 0x38]
call fcn.00434695
push esi
lea ecx, [ebp - 0xc]
call fcn.00434695
push 6
lea eax, [ebp + 8]
push eax
push str.query
mov dword [ebp - 8], 0x80000000
mov byte [ebp - 0x11], 0
call fcn.0042c7e8
mov byte [ebp - 0x1d], al
push 2
lea eax, [ebp + 8]
push eax
push 0x48227c
call fcn.0042c7e8
mov ecx, dword [ebp + 8]
add esp, 0x18
mov byte [ebp - 0x39], al
jmp 0x45a320
cmp ax, 0x21
jne 0x45a328
inc ecx
inc ecx
mov byte [ebp - 0x11], 1
mov dword [ebp + 8], ecx
mov ax, word [ecx]
cmp ax, di
jne 0x45a311
lea eax, [ebp + 8]
push ebx
push eax
call fcn.0042609c
pop ecx
push 1
push 0x2c
pop ebx
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.0043e2e9
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0042d6bc
push dword [ebp - 0x10]
call fcn.0040aea9
push dword [ebp - 0x10]
call fcn.0040ca55
mov esi, eax
mov ax, word [esi]
add esp, 0x14
cmp ax, 0x5c
mov dword [ebp - 0x28], esi
je 0x45a37b
cmp ax, 0x2f
mov byte [ebp - 1], 0
jne 0x45a37f
mov byte [ebp - 1], 1
cmp byte [ebp - 0x1d], 0
jne 0x45a3db
cmp byte [ebp - 1], 0
je 0x45a3db
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp - 0x10]
and dword [ebp - 0x10], 0
mov esi, eax
lea eax, [esi + 3]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], edi
call fcn.0042aeff
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.00403ac3
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0042602e
mov esi, dword [ebp - 0x28]
xor edi, edi
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x45a404
add dword [ebp + 8], 2
push 1
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.0043e2e9
push edi
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.0042d669
add esp, 0xc
push dword [ebp - 0x2c]
call fcn.0040ca55
cmp byte [ebp - 0x1d], 0
pop ecx
mov dword [ebp - 0x24], eax
je 0x45a5c6
cmp dword [0x490004], edi
jne 0x45a42a
push 0x78
pop esi
jmp 0x45a5d1
push 0x3d
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x45a442
mov word [eax], di
inc eax
inc eax
mov dword [ebp - 0x18], eax
cmp word [esi], di
jne 0x45a451
mov esi, 0x80070057
jmp 0x45a5d1
push 0x100020
lea ecx, [ebp - 0x1c]
call fcn.0042add7
push 0x20
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], 0x100000
call fcn.0042aed6
mov eax, dword [ebp - 8]
mov word [eax + 4], di
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
mov byte [ebp + 0xb], 0
call dword [0x490004]
test eax, eax
jne 0x45a4a0
lea ecx, [ebp - 8]
call fcn.0042602e
lea ecx, [ebp - 0x1c]
call fcn.0042602e
jmp 0x45a5ce
mov eax, dword [ebp - 0x34]
xor edx, edx
mov ecx, 0x418
div ecx
xor ebx, ebx
cmp eax, edi
mov dword [ebp - 0x4c], eax
jle 0x45a5bb
mov esi, dword [ebp - 0x1c]
add esi, 0x208
mov eax, dword [ebp - 0x24]
cmp word [eax], di
je 0x45a539
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x45a531
cmp dword [ebp - 0x18], edi
mov byte [ebp + 0xb], 1
je 0x45a539
push dword [ebp - 0x18]
push 0x482278
call fcn.00426fa9
test al, al
pop ecx
pop ecx
je 0x45a539
mov eax, dword [ebp - 0x1c]
imul ebx, ebx, 0x418
cmp dword [ebx + eax + 0x414], edi
mov eax, 0x47e400
jne 0x45a50e
mov eax, 0x47c098
mov ecx, dword [ebp - 0x30]
push eax
push dword [ebp - 0x28]
call fcn.00429dbf
lea ecx, [ebp - 8]
call fcn.0042602e
lea ecx, [ebp - 0x1c]
call fcn.0042602e
xor esi, esi
jmp 0x45a5d1
mov eax, dword [ebp - 0x24]
cmp word [eax], di
jne 0x45a5ab
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.0042af26
lea eax, [esi - 0x208]
push eax
lea ecx, [ebp - 8]
call fcn.0042af26
push 0x482254
lea ecx, [ebp - 8]
call fcn.0042af26
push esi
lea ecx, [ebp - 8]
call fcn.0042af26
push 0x47b19c
lea ecx, [ebp - 8]
call fcn.0042af26
cmp byte [ebp + 0xb], 0
jne 0x45a5bb
inc ebx
add esi, 0x418
cmp ebx, dword [ebp - 0x4c]
jl 0x45a4c2
mov eax, dword [ebp - 8]
add eax, 4
jmp 0x45a50e
mov eax, dword [ebp - 0x24]
cmp word [eax], di
jne 0x45a600
xor esi, esi
inc esi
lea ecx, [ebp - 0xc]
call fcn.0042602e
lea ecx, [ebp - 0x38]
call fcn.0042602e
lea ecx, [ebp - 0x2c]
call fcn.0042602e
lea ecx, [ebp - 0x10]
call fcn.0042602e
lea ecx, [ebp - 0x48]
call fcn.0042602e
mov eax, esi
jmp 0x45a8fe
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x45a652
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.0043e2e9
push eax
call fcn.0042d84d
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], bx
jne 0x45a652
add dword [ebp + 8], 2
push 1
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.0043e2e9
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0042d669
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], edi
call fcn.0040ca55
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.004346c9
lea ecx, [ebp + 8]
call fcn.0042602e
cmp byte [ebp - 0x39], 0
mov dword [ebp + 8], edi
jne 0x45a85d
cmp word [esi], di
je 0x45a85d
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x2a
jne 0x45a6b3
push 0x105
lea ecx, [ebp - 0xc]
call fcn.0042aeff
mov eax, dword [ebp - 0xc]
mov word [eax], di
push dword [ebp - 0xc]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [0x48fffc], edi
jne 0x45a6eb
lea ecx, [ebp - 0xc]
call fcn.0042602e
lea ecx, [ebp - 0x38]
call fcn.0042602e
lea ecx, [ebp - 0x2c]
call fcn.0042602e
lea ecx, [ebp - 0x10]
call fcn.0042602e
lea ecx, [ebp - 0x48]
call fcn.0042602e
xor eax, eax
inc eax
jmp 0x45a8fe
push dword [ebp - 0x24]
call fcn.004662e5
test eax, eax
pop ecx
jne 0x45a714
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.00434695
push dword [ebp - 0x18]
call fcn.00416366
pop ecx
lea ecx, [ebp - 0x18]
call fcn.0042602e
push dword [ebp - 0x24]
call fcn.004662e5
test eax, eax
pop ecx
je 0x45a6bb
cmp byte [ebp - 1], 0
jne 0x45a732
push esi
call fcn.0046646e
test eax, eax
pop ecx
je 0x45a6bb
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 0x45a759
test byte [ebp - 0x70], 1
jne 0x45a764
mov eax, dword [ebp - 0xc]
cmp word [eax], si
mov dword [ebp - 0x18], eax
jne 0x45a767
mov dword [ebp - 0x18], esi
cmp byte [ebp - 1], 0
mov dword [ebp - 0x1c], esi
je 0x45a786
cmp dword [ebp - 0x34], esi
jne 0x45a77c
mov dword [ebp - 0x1c], pe_nt_image_headers32
cmp byte [ebp - 0x11], 0
je 0x45a786
or byte [ebp - 0x1b], 2
xor ebx, ebx
inc ebx
cmp byte [ebp - 1], 0
mov eax, ebx
je 0x45a79f
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
call fcn.004561c0
pop ecx
pop ecx
mov esi, dword [ebp - 8]
sar eax, 8
movzx edi, al
dec edi
cmp esi, 0x80000000
jne 0x45a7b3
mov esi, ebx
push dword [ebp - 0x28]
call fcn.0046646e
test eax, eax
pop ecx
je 0x45a813
cmp dword [ebp - 0x34], 0
je 0x45a7e0
test esi, esi
jge 0x45a7cc
mov esi, ebx
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call fcn.0042e48d
add esp, 0x10
jmp 0x45a7f6
test esi, esi
jge 0x45a7e6
mov esi, ebx
push dword [ebp - 0x18]
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call dword [0x48fffc]
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 - 0x30]
call fcn.0040b047
add esp, 0x18
cmp byte [ebp - 1], 0
je 0x45a82c
cmp byte [ebp - 0x11], 0
jne 0x45a82c
mov eax, dword [ebp - 0x1c]
test ax, ax
je 0x45a82c
call fcn.0042793c
test edi, edi
jl 0x45a8ce
push edi
lea eax, [ebp - 0x138]
push 0x4821e0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x30]
add esp, 0xc
push 0
lea eax, [ebp - 0x130]
push eax
call fcn.00444968
jmp 0x45a8ce
cmp dword [0x490000], edi
je 0x45a6bb
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.004662e5
test eax, eax
pop ecx
je 0x45a6bb
cmp word [esi], di
jne 0x45a882
xor esi, esi
cmp word [ebx], di
mov ecx, ebx
jne 0x45a88b
xor ecx, ecx
mov eax, 0x80000000
cmp dword [ebp - 8], eax
jne 0x45a898
mov dword [ebp - 8], edi
cmp dword [ebp - 0x34], edi
je 0x45a8b0
xor eax, eax
cmp dword [ebp - 8], edi
setne al
push eax
push ebx
call fcn.00428660
pop ecx
pop ecx
jmp 0x45a8cb
cmp dword [ebp - 8], eax
je 0x45a8bf
cmp dword [ebp - 8], edi
je 0x45a8bf
xor eax, eax
inc eax
jmp 0x45a8c1
xor eax, eax
push eax
push edi
push esi
push ecx
call dword [0x490000]
mov dword [ebp + 8], eax
lea ecx, [ebp - 0xc]
call fcn.0042602e
lea ecx, [ebp - 0x38]
call fcn.0042602e
lea ecx, [ebp - 0x2c]
call fcn.0042602e
lea ecx, [ebp - 0x10]
call fcn.0042602e
lea ecx, [ebp - 0x48]
call fcn.0042602e
xor eax, eax
cmp dword [ebp + 8], eax
sete al
pop ebx
pop edi
pop esi
leave
ret 8