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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cea20
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x50ac94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x50cb74]
cmp eax, 0xffffffff
jne 0x467b1b
push ecx
mov ebx, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x20], ebx
call fcn.0049ff8a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x467869
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, 0x4ddc20
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x467967
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a7eac
mov edi, eax
test edi, edi
je 0x467981
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 0x467981
push esi
push eax
push edi
call fcn.004216d6
mov edi, eax
add esp, 0xc
test edi, edi
je 0x467981
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 0x4678f5
push esi
mov ecx, ebx
call fcn.004214f5
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
jne 0x46790f
push edi
call fcn.004ae67a
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.004ae100
add esp, 0x10
cmp eax, 0x50
ja case.0x467a71.1
movzx edx, byte [eax + 0x467b40]
jmp dword [edx*4 + 0x467b30]
call fcn.004a04f2
test esi, esi
jl 0x46795d
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x46795d
mov edx, dword [ebp - 0x18]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x467981
push 0x80070057
call fcn.00421000
push 0x4ddc20
call fcn.004ae67a
add esp, 4
push eax
push 0x4ddc20
mov ecx, ebx
call fcn.004241cf
push ecx
mov dword [ebp - 4], 1
mov ebx, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x24], ebx
call fcn.0049ff8a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4679ab
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 0x467aa0
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a7eac
mov edi, eax
test edi, edi
je 0x467aba
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 0x467aba
push esi
push eax
push edi
call fcn.004216d6
mov edi, eax
add esp, 0xc
test edi, edi
je 0x467aba
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 0x467a34
push esi
mov ecx, ebx
call fcn.004214f5
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x18], edx
cmp eax, 0xffffffff
jne 0x467a4e
push edi
call fcn.004ae67a
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.004ae100
add esp, 0x10
cmp eax, 0x50
ja case.0x467a71.1
movzx edx, byte [eax + 0x467ba4]
jmp dword [edx*4 + 0x467b94]
call fcn.004a052a
test esi, esi
jl 0x46795d
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x46795d
mov edx, dword [ebp - 0x14]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x467aba
push str.mscoree.dll
call fcn.004ae67a
add esp, 4
push eax
push str.mscoree.dll
mov ecx, ebx
call fcn.004241cf
push ecx
mov byte [ebp - 4], 3
mov eax, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00467610
add esp, 4
lea edi, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00468250
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 0x467b14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov dword [0x50cb74], 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