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

Disassembly:
push 0xffffffffffffffff
push 0x439cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x449f18]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449f18]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x3c4]
push 0xf9f5f4
mov ecx, edi
call fcn.004011d0
lea ebp, [esi + 0x4f0]
push 0xf9f5f4
mov ecx, ebp
call fcn.004011d0
lea ebx, [esi + 0x428]
push 0xf9f5f4
mov ecx, ebx
call fcn.004011d0
lea ecx, [esi + 0x294]
push 0xffffff
call fcn.004011d0
push 1
lea ecx, [esi + 0x74]
call fcn.004199ad
lea ecx, [esi + 0x1d8]
push 1
mov dword [esp + 0x40], ecx
call fcn.004199ad
push 0
lea ecx, [esi + 0xcc]
call fcn.0041996b
push 0
lea ecx, [esi + 0x184]
call fcn.0041996b
push 0
lea ecx, [esi + 0x120]
call fcn.0041996b
push 1
lea ecx, [esi + 0x230]
call fcn.0041996b
push 1
lea ecx, [esi + 0x294]
call fcn.0041996b
push 1
lea ecx, [esi + 0x2fc]
call fcn.0041996b
push 1
lea ecx, [esi + 0x360]
call fcn.0041996b
push 1
mov ecx, edi
call fcn.0041996b
push 1
mov ecx, ebx
call fcn.0041996b
push 1
lea ecx, [esi + 0x48c]
call fcn.0041996b
push 1
mov ecx, ebp
call fcn.0041996b
lea ecx, [esi + 0x554]
push 1
call fcn.0041996b
push 0x43d30c
push 0x3ea
mov ecx, esi
call fcn.004197dc
push 0
lea ecx, [esi + 0x5fc]
call fcn.0041996b
push 0
lea ecx, [esi + 0x650]
call fcn.0041996b
push 0
lea ecx, [esi + 0x6a4]
call fcn.0041996b
push 0
lea ecx, [esi + 0x6f8]
call fcn.0041996b
push 0
lea ecx, [esi + 0x1024]
call fcn.0041996b
push 1
lea ecx, [esi + 0x1084]
call fcn.0041996b
push 1
push 0x40a
mov ecx, esi
call fcn.00419789
mov ecx, eax
call fcn.0041996b
lea eax, [esp + 0x64]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x64]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x407d87
mov ecx, dword [str._ddinstalllog_file.txt]
mov edx, dword [0x43d9bc]
mov dword [eax], ecx
mov ecx, dword [0x43d9c0]
mov dword [eax + 4], edx
mov edx, dword [0x43d9c4]
mov dword [eax + 8], ecx
mov ecx, dword [0x43d9c8]
mov dword [eax + 0xc], edx
mov edx, dword [0x43d9cc]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
call fcn.00419aa0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407dde
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x174], 0
call fcn.00419aa0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407e13
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x38], ebp
mov byte [esp + 0x174], 1
call fcn.00419aa0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407e45
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x174], 2
call fcn.00419aa0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407e77
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x174], 3
call fcn.00419aa0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407ea9
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x174], 4
call fcn.00419aa0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407edb
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
cmp dword [0x44b478], 0
mov byte [esp + 0x174], 5
jne 0x408278
lea ecx, [esp + 0x50]
mov dword [0x44b478], 1
call fcn.0041d39e
push 0
push 2
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x180], 6
call fcn.0041d3b6
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x54]
call fcn.0041d8c3
test eax, eax
je 0x407fa7
nop
mov eax, dword [esp + 0x1c]
push str._inst_path_
push eax
call fcn.00423ae2
add esp, 8
test eax, eax
sete al
test al, al
jne 0x407f6f
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x54]
call fcn.0041d8c3
test eax, eax
jne 0x407f40
jmp 0x407fa7
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x54]
call fcn.0041d8c3
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
call fcn.004017c0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x54]
call fcn.0041d8c3
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x3c]
call fcn.004017c0
lea ecx, [esp + 0x50]
call fcn.0041d76a
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
push eax
call fcn.004016c0
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], edi
cmp dword [edi - 0xc], 0
mov byte [esp + 0x174], 7
jl 0x4081db
push 0x43d1c4
push edi
call fcn.00425098
add esp, 8
test eax, eax
je 0x4081d5
sub eax, edi
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x4081d5
mov edi, edi
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ff0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x178], 8
call fcn.004017c0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x174], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408049
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x48], esp
mov ebx, esp
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40807b
cmp eax, dword [edi]
jne 0x40807b
mov ebp, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4080af
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x4081cc
mov eax, dword [edi + 4]
mov dword [ebp + 4], eax
mov eax, dword [edi + 4]
inc eax
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.00423015
add esp, 0x10
lea edx, [esp + 0x50]
add ebp, 0x10
push edx
mov ecx, esi
mov dword [ebx], ebp
call fcn.004074b0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x178], 9
call fcn.004017c0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x174], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4080fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00404da0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x178], 0xa
call fcn.004017c0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x174], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40814b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
sub eax, dword [esp + 0x2c]
lea edx, [esp + 0x20]
dec eax
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00401f70
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x178], 0xb
call fcn.004017c0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x174], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
jl 0x4081d1
push 0x43d1c4
push edi
call fcn.00425098
add esp, 8
test eax, eax
je 0x4081d1
sub eax, edi
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x4081d1
jmp 0x408000
call fcn.00404120
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
je 0x40822c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00404da0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x178], 0xc
call fcn.004017c0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x174], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40822c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
push 0x3f1
mov ecx, esi
call fcn.004197dc
lea eax, [edi - 0x10]
mov byte [esp + 0x174], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x174], 5
call fcn.0041d7a8
mov ebp, dword [esp + 0x38]
jmp 0x408289
lea ecx, [esp + 0x18]
push ecx
push 0x3f1
mov ecx, esi
call fcn.00418998
push 0x43d1a4
push ebp
call fcn.00423ae2
add esp, 8
test eax, eax
sete al
test al, al
je 0x4082ba
push 0
lea ecx, [esi + 0x294]
call fcn.004199ad
push 0
lea ecx, [esi + 0x554]
call fcn.004199ad
push ecx
mov edx, esp
mov dword [esp + 0x48], esp
push 1
push edx
lea ecx, [esp + 0x24]
call fcn.00401ff0
mov ecx, esi
call fcn.00406850
mov ecx, esi
call fcn.00405c00
fstp qword [esp + 0x44]
call fcn.00419aa0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4082f9
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
fld qword [esp + 0x44]
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x1c]
push 0x43d7e0
mov bl, 0xd
push ecx
mov byte [esp + 0x184], bl
call fcn.004013b0
push 0x43d9a8
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00402a60
add esp, 0x1c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x178], 0xe
call fcn.004017c0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x174], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40837b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
push edi
push 0x3f5
mov ecx, esi
call fcn.004197dc
push 3
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
mov dword [0x44b474], 3
mov dword [0x44b470], 2
call fcn.00401ff0
mov esi, dword [esp + 0x34]
push esi
mov byte [esp + 0x178], 0xf
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x4083df
test eax, eax
je 0x4083df
cmp eax, 1
je 0x4083df
cmp eax, 4
je 0x4083df
cmp eax, 6
je 0x4083df
push 1
jmp 0x4083e1
push 0
mov ecx, dword [esp + 0x40]
call fcn.004199ad
lea eax, [esi - 0x10]
mov byte [esp + 0x174], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40840d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x174], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408431
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x174], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408459
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x174], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408481
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x174], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x174], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x174], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x174], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408520
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00423763
add esp, 0x164
ret