Function at 0x469380
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572823
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x290], ecx
xor ecx, ecx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x264], ecx
lea ecx, [ebp - 0x238]
push eax
mov dword [ebp - 0x298], edi
mov dword [ebp - 0x294], esi
call fcn.0040a1e0
lea eax, [ebp - 0x289]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 0x289], 0
push eax
call fcn.0042ab90
add esp, 8
test al, al
je 0x46961d
cmp byte [ebp - 0x289], 0
mov eax, dword [ebp - 0x290]
mov byte [eax], 0
je 0x469a98
xor eax, eax
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
push 0x591fe0
push 4
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.0042a8a0
test eax, eax
lea eax, [ebp - 0x238]
jne 0x46950c
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x27c]
push ecx
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.0049f830
add esp, 8
test al, al
je 0x4695f2
lea eax, [ebp - 0x238]
cmp edi, eax
je 0x4694b5
cmp dword [ebp - 0x224], 8
mov ecx, edi
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.00408f30
call fcn.0049ce90
mov ecx, dword [ebp - 0x26c]
test al, al
je 0x4694e2
cmp ecx, 0x10a
jb 0x4694e2
push edi
mov ecx, esi
call fcn.0042b100
mov eax, dword [ebp - 0x290]
mov byte [eax], 0
jmp 0x4695f2
lea eax, [ebp - 0x27c]
cmp esi, eax
je 0x4695e9
cmp dword [ebp - 0x268], 8
push ecx
cmovae eax, dword [ebp - 0x27c]
mov ecx, esi
push eax
call fcn.00408f30
jmp 0x4695e9
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0042a950
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x469528
mov eax, dword [eax]
lea ecx, [ebp - 0x27c]
push ecx
push eax
call fcn.0049f830
add esp, 8
mov byte [ebp - 0x289], al
mov ecx, dword [ebp - 0x24c]
mov byte [ebp - 4], 3
cmp ecx, 8
jb 0x469566
inc ecx
push ecx
push dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call fcn.0040a2e0
mov al, byte [ebp - 0x289]
mov byte [ebp - 4], 1
test al, al
je 0x4695f2
lea eax, [ebp - 0x238]
cmp edi, eax
je 0x469598
cmp dword [ebp - 0x224], 8
mov ecx, edi
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.00408f30
call fcn.0049ce90
test al, al
je 0x4695c0
cmp dword [ebp - 0x26c], 0x10a
jb 0x4695c0
push edi
mov ecx, esi
call fcn.0042b100
mov eax, dword [ebp - 0x290]
mov byte [eax], 0
jmp 0x4695f2
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00460a40
add esp, 8
mov ecx, esi
push eax
call fcn.0040f610
lea ecx, [ebp - 0x260]
call fcn.0040a280
mov eax, dword [ebp - 0x290]
mov byte [eax], 1
mov eax, dword [ebp - 0x268]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x469a98
inc eax
lea ecx, [ebp - 0x27c]
push eax
push dword [ebp - 0x27c]
call fcn.0040a2e0
jmp 0x469a98
push 0x591fe0
push 4
push 0
lea ecx, [ebp - 0x238]
call fcn.0042a8a0
test eax, eax
jne 0x469685
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x238]
call fcn.00409610
push eax
lea ecx, [ebp - 0x238]
call fcn.0040f610
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x469679
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.0040a2e0
xor eax, eax
mov word [ebp - 0x260], ax
mov byte [ebp - 4], al
lea eax, [ebp - 0x238]
push eax
call fcn.004610a0
add esp, 4
test al, al
jne 0x469a8f
or ecx, 0xffffffff
mov byte [ebp - 0x289], al
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x228]
cmp eax, ecx
mov dword [ebp - 0x220], eax
cmovb ecx, eax
mov dword [ebp - 0x250], 0
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push ecx
cmovae eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x260]
push eax
mov dword [ebp - 0x24c], 7
call fcn.00408f30
or dword [ebp - 0x23c], 2
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x469754
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 6
cmp edx, 0x1000
jb 0x469746
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a0e4
push edx
push ecx
call fcn.00409f25
add esp, 8
mov byte [ebp - 4], 0
movups xmm1, xmmword [ebp - 0x260]
lea ecx, [ebp - 0x238]
xor eax, eax
movq xmm0, qword [ebp - 0x250]
movq qword [ebp - 0x228], xmm0
mov edx, dword [ebp - 0x224]
cmp edx, 8
mov word [ebp - 0x260], ax
movd eax, xmm1
movups xmmword [ebp - 0x238], xmm1
mov dword [ebp - 0x250], 0
cmovae ecx, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x29c], ecx
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x220], eax
test ecx, ecx
je 0x4697de
mov eax, dword [ebp - 0x29c]
cmp word [eax], 0x5c
je 0x4697d1
add eax, 2
sub ecx, 1
jne 0x4697c1
jmp 0x4697de
sub eax, dword [ebp - 0x29c]
sar eax, 1
cmp eax, 0xffffffff
jne 0x469832
cmp edx, 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x469824
cmp eax, 1
je 0x469824
cmp byte [ebp - 0x289], 0
jne 0x469a8f
push 1
push 0x58f23c
lea ecx, [ebp - 0x238]
call fcn.0040ddb0
mov byte [ebp - 0x289], 1
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x238]
jmp 0x469838
mov ecx, dword [ebp - 0x220]
cmp edx, 8
lea eax, [ebp - 0x238]
cmovae eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46989e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x469a23
cmp esi, 3
je 0x469a23
cmp esi, 0x7b
je 0x469a23
cmp esi, 0xa1
je 0x469a23
mov ecx, dword [ebp - 0x23c]
test cl, 1
je 0x469a9a
lea ecx, [ebp - 0xc4]
call fcn.004965b0
jmp 0x469a9a
test eax, 0x400
je 0x469a29
test edi, edi
je 0x46a0d6
test esi, esi
je 0x46a0d6
mov dword [edi + 0x10], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4698ca
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
mov eax, esi
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x14], 8
jb 0x4698dc
mov eax, dword [esi]
xor ecx, ecx
push ecx
push 0x2200000
push 3
mov word [eax], cx
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
push ecx
cmovae eax, dword [ebp - 0x238]
push 7
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x220], eax
cmp eax, 0xffffffff
je 0x46a0cc
xorps xmm0, xmm0
mov dword [ebp - 0x280], 0
movq qword [ebp - 0x288], xmm0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
push 0x428b
lfence
call fcn.00406a5e
add esp, 4
test eax, eax
je 0x46a0e4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
push 0x4268
push 0
push edi
lea esi, [edi + 0x4268]
mov dword [ebp - 0x29c], edi
mov dword [edi - 4], eax
mov dword [ebp - 0x288], edi
mov dword [ebp - 0x280], esi
call fcn.0053f340
add esp, 0xc
mov dword [ebp - 0x284], esi
push 0
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 0xb
push eax
push 0x4268
push edi
push 0
push 0
push 0x900a8
push dword [ebp - 0x220]
mov dword [ebp - 0x264], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 0x220]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x469cc5
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x469cc5
cmp eax, 0x4268
ja 0x469cc5
mov eax, dword [edi]
cmp eax, 0x80000013
je 0x469a0e
cmp eax, 0x80000007
jne 0x469ade
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0
call fcn.004126f0
mov edi, dword [ebp - 0x298]
mov esi, dword [ebp - 0x294]
cmp dword [ebp - 0x224], 8
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 0x228]
cmovae edx, dword [ebp - 0x238]
mov dword [ebp - 0x220], 0xffffffff
test eax, eax
je 0x469a83
dec eax
or ecx, 0xffffffff
cmp eax, ecx
mov dword [ebp - 0x220], eax
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x469a7d
nop word [eax + eax]
cmp ecx, edx
je 0x469a83
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x469a70
sub ecx, edx
sar ecx, 1
jmp 0x469a86
or ecx, 0xffffffff
cmp ecx, 0xffffffff
jne 0x4696b0
mov eax, dword [ebp - 0x290]
mov byte [eax], 0
xor esi, esi
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], 0x26
cmp eax, 8
jb 0x469ac1
lea ecx, [eax + 1]
push ecx
push dword [ebp - 0x238]
lea ecx, [ebp - 0x238]
call fcn.0040a2e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x290]
mov byte [eax], 1
mov eax, dword [edi]
cmp eax, 0xa0000003
jne 0x469dbb
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0053f340
push 0x58f23c
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00429af0
add esp, 0x18
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xd
jb 0x469b2e
mov eax, dword [eax]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xb
mov esi, eax
call fcn.0040a280
test esi, esi
je 0x469cea
xorps xmm0, xmm0
mov dword [ebp - 0x240], 0
mov eax, 0x104
movq qword [ebp - 0x248], xmm0
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov byte [ebp - 4], 0xe
nop dword [eax]
push eax
lea ecx, [ebp - 0x248]
call fcn.004a5050
mov edi, dword [ebp - 0x248]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
lea eax, [ebp - 0x21c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x469bea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x469c88
mov eax, dword [ebp - 0x23c]
jmp 0x469ba0
cmp word [edi], 0
mov esi, dword [ebp - 0x294]
je 0x469c51
cmp dword [esi + 0x10], 0
jne 0x469c4b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x469c82
test eax, 0x400
jne 0x469c2c
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469c14
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00408f30
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469c31
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x469bf6
mov edi, dword [ebp - 0x248]
mov eax, dword [ebp - 0x240]
sub eax, edi
sar eax, 1
lea ecx, [eax + eax]
mov eax, edi
mov byte [ebp - 4], 0x13
cmp ecx, 0x1000
jb 0x469cda
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a0e4
jmp 0x469cda
mov edi, dword [ebp - 0x248]
test edi, edi
je 0x469cc5
mov eax, dword [ebp - 0x240]
sub eax, edi
sar eax, 1
lea ecx, [eax + eax]
mov eax, edi
mov byte [ebp - 4], 0x11
cmp ecx, 0x1000
jb 0x469cbb
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a0e4
push ecx
push edi
call fcn.00409f25
add esp, 8
mov esi, 3
lea ecx, [ebp - 0x288]
call fcn.004126f0
jmp 0x469a9a
push ecx
push edi
call fcn.00409f25
add esp, 8
mov byte [ebp - 4], 0xb
jmp 0x469cfb
mov esi, dword [ebp - 0x294]
lea eax, [edi + 0x10]
push eax
mov ecx, esi
call fcn.0040e5e0
mov edi, dword [ebp - 0x298]
lea eax, [ebp - 0x238]
cmp edi, eax
je 0x469d27
cmp dword [ebp - 0x224], 8
mov ecx, edi
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.00408f30
cmp dword [esi + 0x10], 0
lea eax, [esi + 0x10]
mov dword [ebp - 0x220], eax
je 0x469da9
push 0x591fe0
push 4
push 0
mov ecx, esi
call fcn.0042a8a0
test eax, eax
jne 0x469d6f
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.00409610
push eax
mov ecx, esi
call fcn.0040f610
lea ecx, [ebp - 0x260]
call fcn.0040a280
mov eax, dword [edi + 0x10]
test eax, eax
je 0x469da9
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x469d80
mov ecx, dword [edi]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x469da9
cmp dword [esi + 0x14], 8
jb 0x469d90
mov esi, dword [esi]
mov eax, dword [ebp - 0x220]
mov eax, dword [eax]
cmp word [esi + eax*2 - 2], 0x5c
jne 0x469da9
push 0x5c
mov ecx, edi
call fcn.0040dc80
lea ecx, [ebp - 0x288]
xor esi, esi
call fcn.004126f0
jmp 0x469a9a
cmp eax, 0xa000000c
jne 0x469cc5
test byte [edi + 0x10], 1
je 0x46a060
mov eax, dword [ebp - 0x228]
xorps xmm0, xmm0
movq qword [ebp - 0x248], xmm0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
push 0x208
lfence
call fcn.00406a5e
mov edi, eax
mov ecx, 0x82
xor eax, eax
mov dword [ebp - 0x248], edi
add esp, 4
lea edx, [edi + 0x208]
mov dword [ebp - 0x240], edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x244], edx
mov edi, dword [ebp - 0x220]
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x268], eax
xorps xmm0, xmm0
mov eax, 0x30
mov byte [ebp - 4], 0x16
mov word [ebp - 0x28e], ax
lea eax, [ebp - 0x289]
push eax
lea eax, [ebp - 0x28e]
movq qword [ebp - 0x270], xmm0
push eax
lea esi, [edi + 1]
push esi
call fcn.00430980
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0x17
cmovae eax, dword [ebp - 0x238]
push eax
push esi
push dword [ebp - 0x270]
call fcn.004066c8
add esp, 0xc
test eax, eax
jne 0x469ff9
test edi, edi
je 0x469ee3
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
cmp word [eax + edi*2 - 2], 0x5c
jne 0x469ee3
mov eax, dword [ebp - 0x270]
xor ecx, ecx
mov word [eax + edi*2 - 2], cx
push dword [ebp - 0x270]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x469ff9
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov ecx, dword [ebp - 0x29c]
mov byte [ebp - 4], 0x1c
movzx eax, word [ecx + 0xa]
shr eax, 1
push eax
movzx eax, word [ecx + 8]
add ecx, 0x14
shr eax, 1
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x260]
call fcn.00408f30
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push dword [ebp - 0x270]
push dword [ebp - 0x248]
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x469f6d
lea esi, [eax + 3]
jmp 0x469fb8
mov edi, dword [ebp - 0x298]
lea eax, [ebp - 0x238]
cmp edi, eax
je 0x469f99
cmp dword [ebp - 0x224], 8
mov ecx, edi
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.00408f30
push dword [ebp - 0x248]
mov esi, dword [ebp - 0x294]
mov ecx, esi
call fcn.00440b97
push esi
push edi
call fcn.0049e780
add esp, 8
xor esi, esi
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 4], 0x20
cmp eax, 8
jb 0x469fda
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
jmp 0x469ffe
mov esi, 3
lea ecx, [ebp - 0x270]
call fcn.00430a10
mov ecx, dword [ebp - 0x248]
test ecx, ecx
je 0x469cca
mov eax, dword [ebp - 0x240]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
mov byte [ebp - 4], 0x21
cmp edx, 0x1000
jb 0x46a046
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a0e9
push edx
push ecx
call fcn.00409f25
add esp, 8
lea ecx, [ebp - 0x288]
call fcn.004126f0
jmp 0x469a9a
mov ecx, dword [ebp - 0x298]
lea eax, [ebp - 0x238]
cmp ecx, eax
je 0x46a08a
cmp dword [ebp - 0x224], 8
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.00408f30
movzx eax, word [edi + 0xa]
mov esi, dword [ebp - 0x294]
mov ecx, esi
shr eax, 1
push eax
movzx eax, word [edi + 8]
shr eax, 1
add eax, 0xa
lea eax, [edi + eax*2]
push eax
call fcn.00408f30
push esi
push dword [ebp - 0x298]
call fcn.0049e780
add esp, 8
lea ecx, [ebp - 0x288]
xor esi, esi
call fcn.004126f0
jmp 0x469a9a
mov esi, 3
jmp 0x469a9a
mov eax, dword [ebp - 0x290]
mov byte [eax], 1
jmp 0x469a98
call fcn.0054223b
call fcn.0054223b
int3