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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x260], ecx
xor ebx, ebx
push 0xffffffffffffffff
xor ecx, ecx
push ebx
mov word [ebp - 0x228], cx
mov edi, 7
push eax
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], ebx
call fcn.00401c51
push 4
push 0x4d43a8
push 4
push ebx
lea ecx, [ebp - 0x22c]
call fcn.004012ac
test eax, eax
jne 0x4397b6
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x22c]
xor edx, edx
push eax
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x26c], ebx
mov word [ebp - 0x27c], dx
call fcn.00401c51
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x280]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00401c51
cmp dword [ebp - 0x268], 8
jb 0x4397b6
mov edx, dword [ebp - 0x27c]
push edx
call fcn.0048e976
add esp, 4
lea eax, [ebp - 0x22c]
push eax
call fcn.00438780
add esp, 4
test al, al
je 0x4397fa
cmp dword [ebp - 0x214], 8
mov byte [esi], bl
jb 0x439b4a
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.0048e976
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
or esi, 0xffffffff
test byte [0x50e224], 1
mov byte [ebp - 0x22d], bl
jne 0x43982d
or dword [0x50e224], 1
push ebx
push str.3126152
call fcn.0041b630
add esp, 8
test ax, ax
setne dl
mov byte [0x50e220], dl
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, 0x5c
xor eax, eax
push esi
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
call fcn.00401c51
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00401c51
cmp dword [ebp - 0x23c], 8
jb 0x439897
mov eax, dword [ebp - 0x250]
push eax
call fcn.0048e976
add esp, 4
cmp byte [ebp - 0x22d], 0
jne 0x439916
push 1
push 0
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x23c], edi
call fcn.0040588a
cmp eax, 0xffffffff
jne 0x439916
mov eax, dword [ebp - 0x228]
mov esi, 8
cmp dword [ebp - 0x214], esi
jae 0x4398da
lea eax, [ebp - 0x228]
push eax
call ebx
test eax, eax
je 0x439916
mov eax, dword [ebp - 0x228]
cmp dword [ebp - 0x214], esi
jae 0x4398f5
lea eax, [ebp - 0x228]
push eax
call ebx
cmp eax, 1
je 0x439916
push 1
push 0x4d0ef8
lea ecx, [ebp - 0x22c]
call fcn.00402933
mov byte [ebp - 0x22d], 1
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x43992b
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4399d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x439b0f
cmp esi, 3
je 0x439b0f
cmp esi, 0x7b
je 0x439b0f
cmp esi, 0xa1
je 0x439b0f
cmp byte [0x50e244], 0
je 0x4399a5
push 3
push 0xac
push str.._srcwin_utils.cc
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0x25c], 1
call fcn.00444980
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.0040afbf
add esp, 8
test byte [ebp - 0x25c], 1
je 0x4399b9
lea ecx, [ebp - 0x30c]
call fcn.00444620
lea ecx, [ebp - 0x22c]
call fcn.0040199c
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
test eax, 0x400
je 0x439b0f
cmp byte [0x50e220], 0
jne 0x4399f4
mov edx, dword [ebp - 0x234]
mov byte [edx], 1
mov ecx, dword [ebp - 0x260]
test ecx, ecx
je 0x439b0f
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x439b0f
call fcn.00424760
mov ecx, esi
call fcn.00424760
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x439a31
lea eax, [ebp - 0x228]
push 0
push 0x2200000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x439c69
push 0
push 0x4000
call fcn.00438600
mov ebx, eax
push 0x4000
push 0
lea edi, [ebx + 0x4000]
push ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x268], edi
call fcn.0048f0d0
add esp, 0x14
push 0
lea eax, [ebp - 0x258]
push eax
mov dword [ebp - 0x26c], edi
sub edi, ebx
push edi
push ebx
push 0
push 0
push 0x900a8
push esi
mov dword [ebp - 0x258], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov dword [ebp - 0x23c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x23c], 0
je 0x439e03
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x439e03
cmp eax, edi
ja 0x439e03
mov cl, byte [0x50e220]
test cl, cl
je 0x439b5d
mov eax, dword [ebx]
cmp eax, 0x80000013
je 0x439af9
cmp eax, reloc.OLEAUT32.dll_VariantInit
jne 0x439b69
lea ecx, [ebp - 0x274]
call fcn.00438840
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, 0x5c
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x23c], edi
call fcn.0041b6b0
mov esi, eax
cmp esi, 0xffffffff
jne 0x439838
mov ecx, dword [ebp - 0x234]
mov byte [ecx], 0
lea ecx, [ebp - 0x22c]
call fcn.0040199c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 0xa0000003
jne 0x439c5e
mov edx, dword [ebp - 0x234]
mov byte [edx], 1
test cl, cl
je 0x439b82
cmp dword [ebx], 0xa0000003
jne 0x439c5e
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.0048f0d0
push 0x4d0ef8
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x254]
push eax
call fcn.00409c6f
add esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x439bc3
mov eax, dword [eax + 4]
jmp 0x439bc6
add eax, 4
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
lea ecx, [ebp - 0x254]
mov esi, eax
call fcn.0040199c
xor eax, eax
cmp esi, eax
je 0x439d02
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov dword [ebp - 0x234], 0x104
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x234]
push edx
lea ecx, [ebp - 0x248]
call fcn.00439670
mov ecx, dword [ebp - 0x234]
mov edi, dword [ebp - 0x244]
lea eax, [ebp - 0x234]
push eax
push ecx
push edi
lea edx, [ebp - 0x210]
push edx
call esi
test eax, eax
jne 0x439c8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x439c12
lea ecx, [ebp - 0x248]
call fcn.00438840
lea ecx, [ebp - 0x274]
call fcn.00438840
lea ecx, [ebp - 0x22c]
call fcn.0040199c
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
cmp word [edi], 0
mov esi, edi
je 0x439ceb
mov edi, dword [ebp - 0x238]
cmp dword [edi + 0x14], 0
jne 0x439cf1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x439c53
test eax, 0x400
jne 0x439cb9
push esi
mov ecx, edi
call fcn.004029ff
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x439cc0
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x439c92
mov eax, dword [ebp - 0x244]
push eax
call fcn.0048e976
add esp, 4
jmp 0x439d17
mov edi, dword [ebp - 0x238]
mov eax, dword [ebp - 0x244]
push eax
call fcn.0048e976
add esp, 4
jmp 0x439d17
lea ecx, [ebx + 0x10]
push ecx
mov ecx, dword [ebp - 0x238]
call fcn.004029ff
mov edi, dword [ebp - 0x238]
mov esi, dword [ebp - 0x260]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x22c]
push edx
mov ecx, esi
call fcn.00401c51
cmp dword [edi + 0x14], 0
je 0x439dcb
push 0x4d43a8
push 4
push 0
mov ecx, edi
call fcn.0042a610
test eax, eax
jne 0x439d76
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x280]
push eax
mov ecx, edi
call fcn.004098d6
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00401c51
lea ecx, [ebp - 0x280]
call fcn.0040199c
cmp dword [esi + 0x14], 0
je 0x439dcb
lea ecx, [ebp - 0x240]
push ecx
mov ecx, esi
call fcn.00438810
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov edi, 0x5c
mov dword [ebp - 0x264], edx
cmp word [eax - 2], di
je 0x439dcb
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x240]
push eax
call fcn.00438810
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x264], ecx
cmp word [eax - 2], di
jne 0x439dcb
push edi
mov ecx, esi
call fcn.00438b20
push ebx
call fcn.0048e976
add esp, 4
cmp dword [ebp - 0x214], 8
jb 0x439b4a
mov edx, dword [ebp - 0x228]
push edx
call fcn.0048e976
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x439e10
push ebx
call fcn.0048e976
add esp, 4
cmp dword [ebp - 0x214], 8
jb 0x439e28
mov eax, dword [ebp - 0x228]
push eax
call fcn.0048e976
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 3
pop ebx
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret