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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfe00
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x50cc94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x50eb74]
cmp eax, 0xffffffff
jne 0x46809b
push ecx
mov ebx, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x20], ebx
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x467de9
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, 0x4dec30
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x467ee7
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a91be
mov edi, eax
test edi, edi
je 0x467f01
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x467f01
push esi
push eax
push edi
call fcn.00421708
mov edi, eax
add esp, 0xc
test edi, edi
je 0x467f01
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x467e75
push esi
mov ecx, ebx
call fcn.00421527
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
jne 0x467e8f
push edi
call fcn.004af97a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x467ff1.1
movzx edx, byte [eax + 0x4680c0]
jmp dword [edx*4 + 0x4680b0]
call fcn.004a17ee
test esi, esi
jl 0x467edd
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x467edd
mov edx, dword [ebp - 0x18]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x467f01
push 0x80070057
call fcn.00421000
push 0x4dec30
call fcn.004af97a
add esp, 4
push eax
push 0x4dec30
mov ecx, ebx
call fcn.0042423a
push ecx
mov dword [ebp - 4], 1
mov ebx, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x24], ebx
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x467f2b
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov ecx, str.mscoree.dll
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x468020
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a91be
mov edi, eax
test edi, edi
je 0x46803a
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46803a
push esi
push eax
push edi
call fcn.00421708
mov edi, eax
add esp, 0xc
test edi, edi
je 0x46803a
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x467fb4
push esi
mov ecx, ebx
call fcn.00421527
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x18], edx
cmp eax, 0xffffffff
jne 0x467fce
push edi
call fcn.004af97a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x467ff1.1
movzx edx, byte [eax + 0x468124]
jmp dword [edx*4 + 0x468114]
call fcn.004a1826
test esi, esi
jl 0x467edd
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x467edd
mov edx, dword [ebp - 0x14]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x46803a
push str.mscoree.dll
call fcn.004af97a
add esp, 4
push eax
push str.mscoree.dll
mov ecx, ebx
call fcn.0042423a
push ecx
mov byte [ebp - 4], 3
mov eax, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00467b90
add esp, 4
lea edi, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004687d0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x10]
setne dl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov esi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468094
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov dword [0x50eb74], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret