Function at 0x40a390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x4204]
mov eax, 0x4204
call fcn.0044c6d0
push 0xffffffffffffffff
push 0x4686f1
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x4896a0]
xor eax, ebp
mov dword [ebp + 0x4200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x4214]
mov edi, 1
mov dword [ebp - 4], edi
call fcn.00466be0
test eax, eax
jne 0x40a44f
push str.__CryptDiskDriverIsInstalled_Error_
call fcn.00412580
mov eax, dword [ebp + 0x4210]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a41d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x4218]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a98f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a98f
mov ecx, dword [ebp + 0x4210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a4d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x40a4d8
mov edx, dword [ebp + 0x4210]
push edx
push 0x46e53c
call fcn.00412580
mov eax, dword [ebp + 0x4210]
add eax, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x4218]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a98f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a98f
xor ebx, ebx
push 0x3ffc
lea ecx, [ebp + 4]
push ebx
push ecx
mov dword [ebp], ebx
call fcn.00449a70
mov edx, dword [ebp + 0x4210]
add esp, 0xc
push ebx
push edx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00427b1a
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x28]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call edx
push 0x4000
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x40]
call fcn.00426f76
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00427533
lea ecx, [ebp]
push ecx
mov dword [ebp - 4], edi
call fcn.00408370
add esp, 4
test eax, eax
jne 0x40a5a9
push str.__VerifyImageFileHeader_Error_
call fcn.00412580
mov eax, dword [ebp + 0x4210]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a577
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x4218]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a98f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a98f
lea ecx, [ebp + 0x4000]
push ecx
lea edx, [ebp]
push esi
push edx
call fcn.00408470
add esp, 0xc
test eax, eax
jne 0x40a625
push str.__ConfirmPassword_Error_
call fcn.00412580
mov eax, dword [ebp + 0x4210]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x4218]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a98f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a98f
mov dword [ebp - 0x18], 0x110
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x8456
mov dword [ebp - 0x24], 0x4287
mov dword [ebp - 0x20], 0x332
mov dword [ebp - 0x1c], 0x3678
mov dword [ebp - 0x28], 0x12
jmp 0x40a65b
pushaw
mov eax, dword [ebp - 0x2c]
jmp 0x40a664
mov ebx, dword [ebp - 0x24]
jmp 0x40a66a
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
jmp 0x40a677
mov edi, dword [ebp - 0x20]
and eax, ebx
jmp 0x40a680
or eax, esi
and ebx, dword [ebp - 0x30]
jmp 0x40a689
add ebx, eax
sub ecx, eax
sub esi, eax
mov dword [ebp - 0x18], ebx
jmp 0x40a695
add edi, esi
and ebx, eax
jmp 0x40a69e
xor esi, edi
add esi, ebx
jmp 0x40a6a5
sub ecx, esi
add edi, ebx
jmp 0x40a6ad
xor ecx, edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], eax
jmp 0x40a6b9
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], esi
jmp 0x40a6c5
popaw
jmp 0x40a6ca
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
add edx, ecx
add esi, eax
and edx, esi
lea esi, [eax + eax*8]
add esi, esi
and esi, 0x23
xor edx, esi
and ecx, eax
or edx, ecx
or edx, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x1c], eax
jmp 0x40a6f6
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
lea edx, [eax + ecx]
xor esi, edx
mov edx, dword [ebp - 0x28]
add eax, edx
xor eax, 0x19b
or esi, eax
add edx, esi
mov dword [ebp - 0x28], edx
jmp 0x40a71e
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
lea edx, [edx + eax + 5]
and edx, eax
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0xd8
sar eax, 2
or edx, eax
sub dword [ebp - 0x18], edx
jmp 0x40a741
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov edx, eax
and edx, ecx
xor edx, dword [ebp - 0x18]
add esi, 0x12
xor esi, dword [ebp - 0x20]
or edx, esi
sub eax, edx
mov dword [ebp - 0x1c], eax
jmp 0x40a75f
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
add eax, dword [ebp - 0x24]
shl edx, cl
and eax, edx
and dword [ebp - 0x18], eax
jmp 0x40a775
mov eax, dword [ebp - 0x2c]
cdq
idiv dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
lea eax, [esi + esi*8]
add eax, eax
mov ebx, 0x18
mov edi, edx
cdq
idiv ebx
mov eax, dword [ebp - 0x24]
add esi, eax
add esi, dword [ebp - 0x2c]
and edi, edx
add esi, ecx
and esi, dword [ebp - 0x20]
xor edi, esi
and dword [ebp - 0x28], edi
jmp 0x40a7a6
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov edi, esi
sub edi, dword [ebp - 0x24]
mov edx, esi
add edi, eax
sub edx, ecx
add edx, eax
mov eax, dword [ebp - 0x2c]
and edi, edx
cdq
sub eax, edx
sar eax, 1
add eax, esi
xor eax, dword [ebp - 0x28]
or edi, eax
or dword [ebp - 0x18], edi
jmp 0x40a7d1
mov eax, dword [ebp - 0x18]
jmp 0x40a7d8
mov ecx, 0x857
lea ecx, [ecx]
jmp 0x40a7e4
add ecx, 7
sub eax, 0x2a91ae48
cmp ecx, 0x2334
jb 0x40a7e0
jmp 0x40a7f8
imul eax, eax, 0x16c6d
mov ecx, eax
and ecx, 0xde8
xor ecx, 0xc960df20
jmp 0x40a811
jmp 0x40a814
imul eax, eax, 0x6c62669
sub eax, 2
imul eax, ecx
not ecx
add eax, 0xd9b
add ecx, 0x16c6d
xor eax, ecx
jmp 0x40a833
jmp 0x40a837
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x14], eax
call fcn.00419f60
movzx ecx, word [ebp + 0x24f]
push 4
lea eax, [ebp - 0x14]
push eax
push ecx
lea edx, [ebp + 0x4000]
push edx
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 6
call fcn.0041a0f0
mov eax, dword [ebp + 0x420c]
mov ecx, dword [ebp + 0x4220]
mov edx, dword [ebp + 0x421c]
push eax
movzx eax, word [ebp + 0x24f]
push ecx
push edx
mov edx, dword [ebp + 0x4218]
push 0
push eax
mov eax, dword [ebp + 0x4210]
lea ecx, [ebp + 0x4000]
push ecx
push edx
push eax
call fcn.00466c10
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x40a8b8
push str.__CryptDiskMount_Error_
call fcn.00412580
add esp, 4
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 1
call fcn.00419f70
mov eax, dword [ebp + 0x4210]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x4218]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a916
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40a991
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4200]
xor ecx, ebp
call fcn.00449ba6
add ebp, 0x4204
mov esp, ebp
pop ebp
ret