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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [ebp - 0x258], ebx
push ebx
mov dword [ebp - 0x24c], ecx
xor edx, edx
push eax
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x22c], dx
call fcn.00406690
push 8
push str.__UNC_
push 8
push ebx
lea ecx, [ebp - 0x22c]
call fcn.004071e0
test eax, eax
je 0x417787
push 2
push 0x4ed798
push 2
push ebx
lea ecx, [ebp - 0x22c]
call fcn.004071e0
test eax, eax
je 0x417787
push 4
push str.UNC_
push 4
push ebx
lea ecx, [ebp - 0x22c]
call fcn.004071e0
test eax, eax
je 0x417787
push 4
push 0x4edf50
push 4
push ebx
lea ecx, [ebp - 0x22c]
call fcn.004071e0
test eax, eax
jne 0x416fae
push 0xffffffffffffffff
push 4
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], ax
call fcn.00406690
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00405fb0
lea ecx, [ebp - 0x248]
call fcn.00409fe0
lea eax, [ebp - 0x22c]
push eax
call fcn.004177c0
add esp, 4
test al, al
je 0x416fe7
mov ecx, dword [ebp - 0x24c]
mov byte [ecx], bl
lea ecx, [ebp - 0x22c]
call fcn.00409fe0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov byte [ebp - 0x24d], bl
mov dword [ebp - 0x298], 0x5c
lea ebx, [ebx]
push eax
push ebx
lea eax, [ebp - 0x22c]
xor edx, edx
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], dx
call fcn.00406690
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00405fb0
cmp dword [ebp - 0x234], 8
jb 0x417057
mov edx, dword [ebp - 0x248]
push edx
call fcn.00406cf9
add esp, 4
push 1
push ebx
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040a0b0
cmp eax, 0xffffffff
jne 0x4170bc
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x417086
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, ebx
je 0x4170bc
cmp eax, 1
je 0x4170bc
cmp byte [ebp - 0x24d], 0
jne 0x417779
push 1
push 0x4ea370
lea ecx, [ebp - 0x22c]
call fcn.0040d610
mov byte [ebp - 0x24d], 1
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x4170d1
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41712a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x41727f
cmp esi, 3
je 0x41727f
cmp esi, 0x7b
je 0x41727f
cmp esi, 0xa1
je 0x41727f
lea ecx, [ebp - 0x22c]
call fcn.00409fe0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
test eax, 0x400
je 0x41727f
cmp edi, ebx
je 0x41776b
cmp esi, ebx
je 0x41776b
mov ecx, 8
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], ecx
jb 0x417156
mov eax, dword [edi]
jmp 0x417158
mov eax, edi
xor edx, edx
mov word [eax], dx
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], ecx
jb 0x417169
mov eax, dword [esi]
jmp 0x41716b
mov eax, esi
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x218], ecx
jae 0x417184
lea eax, [ebp - 0x22c]
push ebx
push 0x2200000
push 3
push ebx
push 7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4173b3
push 0x4268
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x268], ebx
call fcn.00404fba
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x417750
push 0x4268
push 0
lea ebx, [esi + 0x4268]
push esi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x268], ebx
call fcn.004b7120
add esp, 0xc
push 0
lea eax, [ebp - 0x284]
push eax
mov dword [ebp - 0x26c], ebx
sub ebx, esi
push ebx
push esi
push 0
push 0
push 0x900a8
push edi
mov dword [ebp - 0x284], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov dword [ebp - 0x258], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x258], 0
je 0x4173a8
mov eax, dword [ebp - 0x284]
xor edi, edi
cmp eax, edi
je 0x4173a8
cmp eax, ebx
ja 0x4173a8
mov eax, dword [esi]
cmp eax, 0x80000013
je 0x41725c
cmp eax, 0x80000007
jne 0x4172b3
push esi
call fcn.00406cf9
add esp, 4
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x268], edi
mov edi, dword [ebp - 0x260]
xor ebx, ebx
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x258], 0x5c
call fcn.00417850
cmp eax, 0xffffffff
je 0x417779
mov esi, dword [ebp - 0x254]
jmp 0x417000
mov edx, dword [ebp - 0x24c]
mov byte [edx], 1
mov eax, dword [esi]
cmp eax, 0xa0000003
jne 0x41750b
push 0x208
lea ecx, [ebp - 0x20e]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x210], ax
call fcn.004b7120
push 0x4ea370
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.0040d1b0
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x417307
mov eax, dword [eax]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.00409fe0
cmp ebx, edi
je 0x417437
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x278], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov dword [ebp - 0x24c], 0x104
jmp 0x417360
mov edx, dword [ebp - 0x24c]
push edx
lea ecx, [ebp - 0x280]
call fcn.00421520
mov ecx, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x280]
lea eax, [ebp - 0x24c]
push eax
push ecx
push esi
lea edx, [ebp - 0x210]
push edx
call edi
test eax, eax
jne 0x4173d4
call ebx
cmp eax, 0xea
je 0x417360
lea ecx, [ebp - 0x280]
call fcn.0046e270
lea ecx, [ebp - 0x270]
call fcn.0046e270
lea ecx, [ebp - 0x22c]
call fcn.00409fe0
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
cmp word [esi], 0
mov ebx, dword [ebp - 0x254]
je 0x41742a
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebx + 0x10], 0
jne 0x41742a
push esi
call edi
cmp eax, 0xffffffff
je 0x41739d
test eax, 0x400
jne 0x417403
push esi
mov ecx, ebx
call fcn.004321e0
mov eax, esi
lea edx, [eax + 2]
jmp 0x417410
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417410
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x4173e6
lea ecx, [ebp - 0x280]
call fcn.0046e270
jmp 0x41744c
mov ecx, dword [ebp - 0x254]
add esi, 0x10
push esi
call fcn.004321e0
mov ebx, dword [ebp - 0x254]
mov esi, dword [ebp - 0x260]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x22c]
push eax
mov ecx, esi
call fcn.00406690
cmp dword [ebx + 0x10], 0
je 0x4174e2
push 0x4edf50
push 4
push 0
mov ecx, ebx
call fcn.00418fa0
test eax, eax
jne 0x4174a3
push 0xffffffffffffffff
push 4
lea ecx, [ebp - 0x248]
push ecx
mov ecx, ebx
call fcn.00406650
push eax
mov ecx, ebx
call fcn.00405fb0
lea ecx, [ebp - 0x248]
call fcn.00409fe0
cmp dword [esi + 0x10], 0
je 0x4174e2
lea edx, [ebp - 0x258]
push edx
mov ecx, esi
call fcn.00445830
mov eax, dword [eax]
mov edi, 0x5c
cmp word [eax - 2], di
je 0x4174e2
lea ecx, [ebp - 0x258]
push ecx
mov ecx, ebx
call fcn.00445830
mov edx, dword [eax]
cmp word [edx - 2], di
jne 0x4174e2
push edi
mov ecx, esi
call fcn.0044cdc0
lea ecx, [ebp - 0x270]
call fcn.0046e270
lea ecx, [ebp - 0x22c]
call fcn.00409fe0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
cmp eax, 0xa000000c
jne 0x4173a8
test byte [esi + 0x10], 1
je 0x41770b
mov eax, dword [ebp - 0x21c]
push 0x208
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x294], edi
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x28c], edi
call fcn.00404fba
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x4176f0
lea eax, [ebx + 0x208]
mov dword [ebp - 0x28c], eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x24c]
lea eax, [ebx + 0x208]
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x258]
push eax
inc edi
push edi
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x258], 0x30
call fcn.0045b3a0
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x4175c1
lea eax, [ebp - 0x22c]
mov ecx, dword [ebp - 0x280]
push eax
push edi
push ecx
call fcn.00402c29
add esp, 0xc
test eax, eax
jne 0x417684
mov edi, dword [ebp - 0x24c]
test edi, edi
je 0x417606
lea edx, [edi - 1]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00432b40
cmp word [eax], 0x5c
jne 0x417606
mov ecx, dword [ebp - 0x280]
xor eax, eax
mov word [ecx + edi*2 - 2], ax
mov edx, dword [ebp - 0x280]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x417684
movzx ecx, word [esi + 0xa]
movzx edx, word [esi + 8]
xor eax, eax
shr ecx, 1
shr edx, 1
mov word [ebp - 0x248], ax
push ecx
lea eax, [esi + edx*2 + 0x14]
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
call fcn.00406030
cmp dword [ebp - 0x234], 8
mov eax, dword [ebp - 0x248]
jae 0x417666
lea eax, [ebp - 0x248]
mov ecx, dword [ebp - 0x280]
push eax
push ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x41769a
lea ecx, [ebp - 0x248]
call fcn.00409fe0
lea ecx, [ebp - 0x280]
call fcn.0046e270
lea ecx, [ebp - 0x294]
jmp 0x4173a3
mov esi, dword [ebp - 0x260]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x22c]
push edx
mov ecx, esi
call fcn.00406690
mov edi, dword [ebp - 0x254]
push ebx
mov ecx, edi
call fcn.004321e0
push edi
push esi
call fcn.0045bb50
add esp, 8
lea ecx, [ebp - 0x248]
call fcn.00409fe0
lea ecx, [ebp - 0x280]
call fcn.0046e270
lea ecx, [ebp - 0x294]
call fcn.0046e270
jmp 0x4174e2
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x25c], 0x4ea1d0
call fcn.0044c800
push 0xffffffffffffffff
push edi
mov edi, dword [ebp - 0x260]
lea eax, [ebp - 0x22c]
push eax
mov ecx, edi
call fcn.00406690
movzx edx, word [esi + 8]
movzx ecx, word [esi + 0xa]
shr ecx, 1
shr edx, 1
lea eax, [esi + edx*2 + 0x14]
mov esi, dword [ebp - 0x254]
push ecx
push eax
mov ecx, esi
call fcn.00406030
push esi
push edi
call fcn.0045bb50
add esp, 8
jmp 0x4174e2
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x25c], 0x4ea1d0
call fcn.0044c800
mov ecx, dword [ebp - 0x24c]
mov byte [ecx], 1
jmp 0x4174ed
mov edx, dword [ebp - 0x24c]
mov byte [edx], 0
jmp 0x4174ed
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x24c]
mov byte [eax], bl
jb 0x4177a7
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00406cf9
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret