Function at 0x4684f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x562120
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.005089db
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x468535
push 0x80004005
call fcn.00401340
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x5ba37c
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], ebx
call fcn.004060b0
lea ecx, [esp + 0x14]
push ecx
call fcn.00414280
add esp, 4
push 0xb
push 0x57c2e4
lea ecx, [esp + 0x1c]
call fcn.00401fb0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4686c2
mov ebp, vtable.CArray_struct_tagACCEL__struct_tagACCEL__.0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x3c], 1
call fcn.004ea980
add esp, 8
test eax, eax
je 0x4686a9
mov eax, dword [esi + 0x181c]
mov edx, dword [esp + 0x20]
push eax
mov dword [esi + 0x1820], edx
call fcn.004ff96a
mov eax, dword [esi + 0x1820]
xor ecx, ecx
mov edx, 6
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff95f
add esp, 8
xor edi, edi
cmp dword [esi + 0x1820], ebx
mov dword [esi + 0x181c], eax
jle 0x468645
xor ecx, ecx
cmp ecx, ebx
jl 0x4686a4
cmp edi, dword [esp + 0x20]
jge 0x4686a4
mov eax, dword [esp + 0x1c]
mov ebp, dword [ecx + eax]
lea edx, [ecx + eax]
mov eax, dword [esi + 0x181c]
add eax, ecx
mov dword [eax], ebp
mov dx, word [edx + 4]
inc edi
mov word [eax + 4], dx
add ecx, 6
cmp edi, dword [esi + 0x1820]
jl 0x468606
mov ebp, vtable.CArray_struct_tagACCEL__struct_tagACCEL__.0
mov eax, dword [esi + 0x1820]
mov ecx, dword [esi + 0x181c]
push eax
push ecx
call fcn.004e9b90
mov edx, dword [esi + 0x60]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x1820]
mov ecx, dword [esi + 0x181c]
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateAcceleratorTableW]
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1774], 1
mov dword [esp + 0x18], ebp
cmp eax, ebx
je 0x46872b
push eax
call fcn.004ff96a
add esp, 4
jmp 0x46872b
call fcn.00507f95
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x34], bl
mov dword [esp + 0x18], ebp
cmp eax, ebx
je 0x4686c2
push eax
call fcn.004ff96a
add esp, 4
mov ecx, dword [esi + 0x60]
mov edi, dword [sym.imp.USER32.dll_CopyAcceleratorTableW]
push ebx
push ebx
push ecx
call edi
mov dword [esi + 0x1820], eax
mov eax, dword [esi + 0x181c]
push eax
call fcn.004ff96a
mov eax, dword [esi + 0x1820]
xor ecx, ecx
mov edx, 6
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff95f
mov ecx, dword [esi + 0x1820]
mov edx, dword [esi + 0x60]
add esp, 8
push ecx
push eax
push edx
mov dword [esi + 0x181c], eax
call edi
mov eax, dword [esi + 0x1820]
mov ecx, dword [esi + 0x181c]
push eax
push ecx
call fcn.004e9b90
add esp, 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov dword [esp + 0x34], ecx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46874f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret