Function at 0x50c710
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60876c
mov eax, dword fs:[0]
push eax
mov eax, 0x2027c
call fcn.005ddc60
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x201f8], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x50c756
xor eax, eax
jmp 0x50cc83
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x50c74f
push dword [eax + 0x2c]
mov esi, dword [eax + 0x18]
push dword [eax + 0x28]
mov edi, dword [eax + 0x1c]
push dword [ecx + 4]
lea ecx, [ebp - 0x20288]
call fcn.004a81e0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20264], 0
jne 0x50c78e
xor esi, esi
jmp 0x50cc3d
lea eax, [ebp - 0x20288]
push eax
lea ecx, [ebp - 0x201c8]
call fcn.00479b60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x201c8]
push edi
push esi
mov dword [ebp - 0x20170], 0x883
call fcn.0047a760
test eax, eax
je 0x50cc2c
lea ecx, [ebp - 0x201c8]
call fcn.0047abe0
test eax, eax
je 0x50cc2c
mov ecx, dword [ebp - 0x20164]
mov dword [ebp - 0x2015c], ecx
test ecx, ecx
je 0x50c8a0
mov eax, dword [ecx + 4]
test eax, eax
je 0x50c8a0
mov eax, dword [eax + 0x40]
test dword [eax + 0x20], 0x400
je 0x50c8a0
lea eax, [ebp - 0x20028]
push eax
lea ecx, [ebp - 0x201c8]
call fcn.0047ae00
mov byte [ebp - 4], 5
cmp dword [ebp - 0x20018], 0
je 0x50c88b
cmp dword [ebp - 0x20014], 8
lea eax, [ebp - 0x20028]
cmovae eax, dword [ebp - 0x20028]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50c88b
push dword [ebp + 0x10]
cmp dword [ebp - 0x20014], 8
lea ecx, [ebp - 0x201d4]
lea eax, [ebp - 0x20028]
mov dword [ebp - 0x201d4], 0
cmovae eax, dword [ebp - 0x20028]
push ecx
push eax
call fcn.0050ab30
mov esi, dword [ebp - 0x201d4]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20028]
call fcn.00476270
jmp 0x50cc2e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20028]
call fcn.00476270
mov ecx, dword [ebp - 0x20164]
mov dword [ebp - 0x2015c], ecx
test ecx, ecx
je 0x50c8c5
mov eax, dword [ecx + 4]
test eax, eax
je 0x50c8c5
mov eax, dword [eax + 0x40]
mov ebx, dword [eax + 0x20]
and ebx, 0x800
mov dword [ebp - 0x201f4], ebx
jmp 0x50c8cf
mov dword [ebp - 0x201f4], 0
push ecx
lea ecx, [ebp - 0x201c8]
mov edi, 0x10000
call fcn.0047b040
mov ecx, eax
mov dword [ebp - 0x201d4], ecx
test ecx, ecx
je 0x50cc2c
mov eax, dword [ecx]
push 0
mov eax, dword [eax + 8]
call eax
mov esi, eax
mov dword [ebp - 0x201fc], edx
lea eax, [ebp - 0x201cc]
mov dword [ebp - 0x201e0], esi
push eax
push 1
push 0
mov dword [ebp - 0x201cc], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x50cc2c
mov ebx, dword [ebp + 0x10]
mov eax, ebx
or eax, dword [ebp + 0x14]
jne 0x50cbbc
mov eax, dword [ebp - 0x201fc]
xorps xmm0, xmm0
movlpd qword [ebp - 0x201e8], xmm0
mov ebx, eax
test eax, eax
jb 0x50cc18
ja 0x50c960
test esi, esi
jbe 0x50cc18
nop dword [eax]
mov eax, dword [ebp - 0x201f8]
cmp dword [eax + 4], 0
jne 0x50cc20
cmp dword [ebp - 0x201f4], 0
lea edx, [ebp - 0x201d0]
mov ecx, dword [ebp - 0x201d4]
push edx
push 0x10000
lea edx, [ebp - 0x10010]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x201e8]
push edx
je 0x50cacc
call dword [eax + 0x10]
mov edi, dword [ebp - 0x201d0]
test edi, edi
jne 0x50c9b6
mov edi, 0x10000
jmp 0x50ca66
movzx ecx, byte [ebp - 0x1000f]
movzx eax, byte [ebp - 0x10010]
shl ecx, 8
mov dword [ebp - 0x201ec], 0
mov dword [ebp - 0x201d8], 0
add ecx, eax
je 0x50caa6
lea eax, [ebp - 0x201d8]
push eax
lea eax, [ebp - 0x201ec]
push eax
lea eax, [ebp - 0x10010]
push edi
push eax
lea ecx, [ebp - 0x20010]
call fcn.0047e1e0
add esp, 0x10
test eax, eax
jne 0x50caa6
mov ecx, dword [ebp - 0x201cc]
lea eax, [ebp - 0x201dc]
push eax
mov eax, 0x10000
sub eax, dword [ebp - 0x201d8]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 0x20010]
push eax
push ecx
call dword [edx + 0x10]
sub esi, dword [ebp - 0x201dc]
sbb ebx, 0
mov dword [ebp - 0x201f0], ebx
mov ebx, dword [ebp - 0x201d0]
cmp ebx, 0x10000
je 0x50ca60
mov eax, dword [ebp - 0x201ec]
test eax, eax
jne 0x50cb36
mov ebx, dword [ebp - 0x201f0]
mov ecx, dword [ebp - 0x201e8]
mov eax, dword [ebp - 0x201e4]
add ecx, edi
mov dword [ebp - 0x201e8], ecx
adc eax, 0
mov dword [ebp - 0x201e4], eax
cmp eax, dword [ebp - 0x201fc]
ja 0x50cc18
jb 0x50c960
cmp ecx, dword [ebp - 0x201e0]
jae 0x50cc18
jmp 0x50c960
mov eax, dword [ebp - 0x201cc]
lea edx, [ebp - 0x201dc]
push edx
push edi
lea edx, [ebp - 0x10010]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
sub esi, dword [ebp - 0x201dc]
sbb ebx, 0
jmp 0x50ca66
call dword [eax + 0xc]
test eax, eax
je 0x50cc20
mov edx, dword [ebp - 0x201d0]
cmp edx, 0x10000
je 0x50caf7
xor eax, eax
cmp edx, esi
jne 0x50cc20
cmp eax, ebx
jne 0x50cc20
mov eax, dword [ebp - 0x201f8]
cmp dword [eax + 4], 0
jne 0x50cc20
mov eax, dword [ebp - 0x201cc]
lea edx, [ebp - 0x20200]
push edx
mov edx, dword [ebp - 0x201d0]
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x10010]
push edx
push eax
call dword [ecx + 0x10]
sub esi, dword [ebp - 0x201d0]
sbb ebx, 0
jmp 0x50ca66
mov edx, ebx
lea edi, [ebp - 0x10010]
sub edx, eax
dec edx
or edx, 0xfff
inc edx
add edi, edx
movzx ecx, byte [edi + 1]
movzx eax, byte [edi]
shl ecx, 8
add ecx, eax
je 0x50cc18
lea eax, [ebp - 0x201d8]
sub ebx, edx
push eax
lea eax, [ebp - 0x201ec]
push eax
push ebx
push edi
lea ecx, [ebp - 0x20010]
call fcn.0047e1e0
mov edx, 0x10000
xor eax, eax
sub edx, dword [ebp - 0x201d8]
add esp, 0x10
cmp eax, dword [ebp - 0x201f0]
ja 0x50cb97
jb 0x50cb99
cmp edx, esi
jb 0x50cb99
mov edx, esi
mov eax, dword [ebp - 0x201cc]
lea esi, [ebp - 0x201dc]
push esi
push edx
lea edx, [ebp - 0x20010]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
mov esi, dword [ebp - 0x201cc]
jmp 0x50cc2e
push ebx
call fcn.00560596
mov esi, eax
add esp, 4
test esi, esi
je 0x50cc20
mov ecx, dword [ebp - 0x201d4]
lea edx, [ebp - 0x201e0]
push edx
push ebx
push esi
mov eax, dword [ecx]
lea edx, [ebp - 0x201e8]
xorps xmm0, xmm0
push edx
movlpd qword [ebp - 0x201e8], xmm0
call dword [eax + 0xc]
test eax, eax
je 0x50cc0f
mov eax, dword [ebp - 0x201cc]
lea edx, [ebp - 0x20200]
push edx
push dword [ebp - 0x201e0]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
push esi
call fcn.00560591
add esp, 4
mov esi, dword [ebp - 0x201cc]
jmp 0x50cc2e
mov eax, dword [ebp - 0x201cc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x201c8]
call fcn.00479c30
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CLostNTFSVolume.virtual_0], vtable.CLostNTFSVolume.0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20268]
mov dword [ebp - method.CNTFSVolume.virtual_0], vtable.CNTFSVolume.0
cmp eax, 0xffffffff
je 0x50cc71
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2021c]
test ecx, ecx
je 0x50cc81
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 0x10