Function at 0x407330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov dword [esp + 0xc], ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x646040]
xor eax, ebp
mov dword [esp + 0x78], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x20]
push 0x171
push str.file_win.cc
push str.DoInitialize
push esi
call fcn.00509c60
add esp, 0x10
xor eax, eax
mov ecx, edi
push eax
push eax
call fcn.00520c00
mov dword [esp + 0x6c], 0xa
mov al, byte [0x64b456]
test al, al
jne 0x407600
mov eax, ebx
and eax, 1
neg eax
and eax, 3
xor edx, edx
inc edx
test bl, 2
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov esi, 2
cmove esi, edx
test bl, 0x10
mov eax, 5
cmove eax, esi
test eax, eax
je 0x4075e3
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov edx, ebx
rol edx, 0x1a
and edx, 0x80000100
or edx, ecx
bt ebx, 0x12
mov dword [esp + 8], eax
jb 0x407592
mov ecx, ebx
shr ecx, 4
and ecx, 0x10000
or ecx, edx
mov esi, ebx
shr esi, 8
and esi, 3
mov edx, ebx
shr edx, 0xd
and edx, 4
or edx, esi
mov esi, ebx
and esi, 0x400
mov eax, ebx
mov dword [esp + 0x1c], esi
mov ebx, esi
shl ebx, 0x14
mov esi, eax
shr esi, 3
and esi, 0x100
or esi, ebx
mov edi, eax
shr edi, 0xb
and edi, 2
or edi, esi
mov esi, eax
shl esi, 0xd
and esi, 0x4000000
or esi, edi
mov edi, eax
shl edi, 8
and edi, 0xa000000
or edi, esi
mov eax, dword [ebp + 8]
xor edx, 3
cmp byte [eax + 0xb], 0
mov esi, eax
jns 0x40747a
mov esi, dword [eax]
xor ebx, ebx
push ebx
push edi
push dword [esp + 0x10]
push ebx
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, dword [esp + 0xc]
cmp dword [esi], eax
je 0x40753c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
mov ebx, dword [ebp + 0xc]
jae 0x407550
mov eax, edi
inc eax
cmp eax, 2
jb 0x4074c2
mov dword [esi], edi
call fcn.004ffee0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi]
inc edi
cmp edi, 2
jb 0x407528
mov eax, dword [esp + 0x1c]
shr eax, 0xa
mov dword [esi + 0x14], 0
mov byte [esi + 0x19], al
test bl, 4
jne 0x407517
test bl, 0xa
je 0x4074f3
mov byte [esi + 0x18], 1
bt ebx, 0x15
jb 0x407541
lea ecx, [esp + 0x30]
call fcn.00540880
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.00567335
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [esi + 0x18]
jmp 0x4074f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407630
add esp, 4
mov dword [esi + 0x14], eax
jmp 0x4074f9
mov ebx, dword [ebp + 0xc]
jmp 0x4074ce
push 0
push dword [ebp + 8]
call fcn.00407750
add esp, 8
jmp 0x4074f9
call fcn.004ffee0
mov eax, dword [esi]
cmp dword [0x657038], 0
mov dword [esp + 0x18], eax
je 0x4075a7
mov eax, dword [0x657038]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
call dword [0x6401dc]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x18]
call dword [esp + 0x14]
mov dword [esi], 0
jmp 0x4074b3
bt ebx, 0x15
jb 0x407626
or edx, 0x20000000
jmp 0x407407
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x6338bd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407629
mov ecx, eax
cmp eax, sym.browser.exe_GetHandleVerifier
je 0x4075dd
call dword [0x6401dc]
call ecx
push 0
push eax
call fcn.0043a140
add esp, 8
jmp 0x407564
push 1
push 0
jmp 0x4075d3
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x14], 0xffffffff
call fcn.005938f0
jmp 0x4074f9
movzx ecx, al
lea eax, [esp + 0x74]
mov dword [eax], esi
lea esi, [esp + 0x70]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0x6c]
push eax
push esi
call fcn.005b7340
add esp, 8
jmp 0x4073a3
int3
xor eax, eax
push eax
jmp 0x4075d2