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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x522638]
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.00406640
push 8
push str.__UNC_
push 8
push ebx
lea ecx, [ebp - 0x22c]
call fcn.00407190
test eax, eax
je 0x41faa7
push 2
push 0x4eafdc
push 2
push ebx
lea ecx, [ebp - 0x22c]
call fcn.00407190
test eax, eax
je 0x41faa7
push 4
push str.UNC_
push 4
push ebx
lea ecx, [ebp - 0x22c]
call fcn.00407190
test eax, eax
je 0x41faa7
push 4
push 0x4eaee0
push 4
push ebx
lea ecx, [ebp - 0x22c]
call fcn.00407190
test eax, eax
jne 0x41f2ce
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.00406640
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00405f60
lea ecx, [ebp - 0x248]
call fcn.00409f90
lea eax, [ebp - 0x22c]
push eax
call fcn.0041fae0
add esp, 4
test al, al
je 0x41f307
mov ecx, dword [ebp - 0x24c]
mov byte [ecx], bl
lea ecx, [ebp - 0x22c]
call fcn.00409f90
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.00406640
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00405f60
cmp dword [ebp - 0x234], 8
jb 0x41f377
mov edx, dword [ebp - 0x248]
push edx
call fcn.00406ca9
add esp, 4
push 1
push ebx
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040a060
cmp eax, 0xffffffff
jne 0x41f3dc
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x41f3a6
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, ebx
je 0x41f3dc
cmp eax, 1
je 0x41f3dc
cmp byte [ebp - 0x24d], 0
jne 0x41fa99
push 1
push 0x4e84a0
lea ecx, [ebp - 0x22c]
call fcn.0040d980
mov byte [ebp - 0x24d], 1
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x41f3f1
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41f44a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x41f59f
cmp esi, 3
je 0x41f59f
cmp esi, 0x7b
je 0x41f59f
cmp esi, 0xa1
je 0x41f59f
lea ecx, [ebp - 0x22c]
call fcn.00409f90
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 0x41f59f
cmp edi, ebx
je 0x41fa8b
cmp esi, ebx
je 0x41fa8b
mov ecx, 8
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], ecx
jb 0x41f476
mov eax, dword [edi]
jmp 0x41f478
mov eax, edi
xor edx, edx
mov word [eax], dx
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x14], ecx
jb 0x41f489
mov eax, dword [esi]
jmp 0x41f48b
mov eax, esi
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x218], ecx
jae 0x41f4a4
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 0x41f6d3
push 0x4268
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x268], ebx
call fcn.00404f8a
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41fa70
push 0x4268
push 0
lea ebx, [esi + 0x4268]
push esi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x268], ebx
call fcn.004b8020
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 0x41f6c8
mov eax, dword [ebp - 0x284]
xor edi, edi
cmp eax, edi
je 0x41f6c8
cmp eax, ebx
ja 0x41f6c8
mov eax, dword [esi]
cmp eax, 0x80000013
je 0x41f57c
cmp eax, 0x80000007
jne 0x41f5d3
push esi
call fcn.00406ca9
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.0041fb70
cmp eax, 0xffffffff
je 0x41fa99
mov esi, dword [ebp - 0x254]
jmp 0x41f320
mov edx, dword [ebp - 0x24c]
mov byte [edx], 1
mov eax, dword [esi]
cmp eax, 0xa0000003
jne 0x41f82b
push 0x208
lea ecx, [ebp - 0x20e]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x210], ax
call fcn.004b8020
push 0x4e84a0
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.0040d4d0
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x41f627
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.00409f90
cmp ebx, edi
je 0x41f757
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 0x41f680
mov edx, dword [ebp - 0x24c]
push edx
lea ecx, [ebp - 0x280]
call fcn.00427f70
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 0x41f6f4
call ebx
cmp eax, 0xea
je 0x41f680
lea ecx, [ebp - 0x280]
call fcn.004495a0
lea ecx, [ebp - 0x270]
call fcn.004495a0
lea ecx, [ebp - 0x22c]
call fcn.00409f90
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 0x41f74a
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebx + 0x10], 0
jne 0x41f74a
push esi
call edi
cmp eax, 0xffffffff
je 0x41f6bd
test eax, 0x400
jne 0x41f723
push esi
mov ecx, ebx
call fcn.00438ae0
mov eax, esi
lea edx, [eax + 2]
jmp 0x41f730
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f730
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x41f706
lea ecx, [ebp - 0x280]
call fcn.004495a0
jmp 0x41f76c
mov ecx, dword [ebp - 0x254]
add esi, 0x10
push esi
call fcn.00438ae0
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.00406640
cmp dword [ebx + 0x10], 0
je 0x41f802
push 0x4eaee0
push 4
push 0
mov ecx, ebx
call fcn.00421400
test eax, eax
jne 0x41f7c3
push 0xffffffffffffffff
push 4
lea ecx, [ebp - 0x248]
push ecx
mov ecx, ebx
call fcn.00406600
push eax
mov ecx, ebx
call fcn.00405f60
lea ecx, [ebp - 0x248]
call fcn.00409f90
cmp dword [esi + 0x10], 0
je 0x41f802
lea edx, [ebp - 0x258]
push edx
mov ecx, esi
call fcn.00459ff0
mov eax, dword [eax]
mov edi, 0x5c
cmp word [eax - 2], di
je 0x41f802
lea ecx, [ebp - 0x258]
push ecx
mov ecx, ebx
call fcn.00459ff0
mov edx, dword [eax]
cmp word [edx - 2], di
jne 0x41f802
push edi
mov ecx, esi
call fcn.00452a30
lea ecx, [ebp - 0x270]
call fcn.004495a0
lea ecx, [ebp - 0x22c]
call fcn.00409f90
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 0x41f6c8
test byte [esi + 0x10], 1
je 0x41fa2b
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.00404f8a
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x41fa10
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.0045a1b0
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x41f8e1
lea eax, [ebp - 0x22c]
mov ecx, dword [ebp - 0x280]
push eax
push edi
push ecx
call fcn.00402be9
add esp, 0xc
test eax, eax
jne 0x41f9a4
mov edi, dword [ebp - 0x24c]
test edi, edi
je 0x41f926
lea edx, [edi - 1]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00439440
cmp word [eax], 0x5c
jne 0x41f926
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 0x41f9a4
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.00405fe0
cmp dword [ebp - 0x234], 8
mov eax, dword [ebp - 0x248]
jae 0x41f986
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 0x41f9ba
lea ecx, [ebp - 0x248]
call fcn.00409f90
lea ecx, [ebp - 0x280]
call fcn.004495a0
lea ecx, [ebp - 0x294]
jmp 0x41f6c3
mov esi, dword [ebp - 0x260]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x22c]
push edx
mov ecx, esi
call fcn.00406640
mov edi, dword [ebp - 0x254]
push ebx
mov ecx, edi
call fcn.00438ae0
push edi
push esi
call fcn.0045a970
add esp, 8
lea ecx, [ebp - 0x248]
call fcn.00409f90
lea ecx, [ebp - 0x280]
call fcn.004495a0
lea ecx, [ebp - 0x294]
call fcn.004495a0
jmp 0x41f802
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x25c], 0x4e8300
call fcn.00452740
push 0xffffffffffffffff
push edi
mov edi, dword [ebp - 0x260]
lea eax, [ebp - 0x22c]
push eax
mov ecx, edi
call fcn.00406640
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.00405fe0
push esi
push edi
call fcn.0045a970
add esp, 8
jmp 0x41f802
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x25c], 0x4e8300
call fcn.00452740
mov ecx, dword [ebp - 0x24c]
mov byte [ecx], 1
jmp 0x41f80d
mov edx, dword [ebp - 0x24c]
mov byte [edx], 0
jmp 0x41f80d
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x24c]
mov byte [eax], bl
jb 0x41fac7
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00406ca9
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